# How to get rid of margins in popup images

**URL:** https://forum.kirupa.com/t/how-to-get-rid-of-margins-in-popup-images/76903
**Category:** flash
**Created:** [January 22, 2005, 6:23pm UTC](https://forum.kirupa.com/t/how-to-get-rid-of-margins-in-popup-images/76903 "2005-01-22T18:23:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mynewt](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mynewt](https://forum.kirupa.com/u/mynewt)
#### Post date: [January 22, 2005, 6:23pm UTC](https://forum.kirupa.com/t/how-to-get-rid-of-margins-in-popup-images/76903/1 "2005-01-22T18:23:52Z")

</div>

Hi all, this is my first post here. I recently used the following script to open a popup img in flash, and it works:

* * *

## on (release) { Movieclip.prototype. **openWin2** = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL(“javascript:var **myWin2** ; if(! **myWin2** || **myWin2**.closed){ **myWin2** = window.open(’”+url+"’, ‘"+winName+"’, ‘"+“width=”+w+", height="+h+", toolbar="+toolbar+", location="+location+", directories="+directories+", status="+status+", menubar="+menubar+", scrollbars="+scrollbars+", resizable="+resizable+", top=’+**color=#009900[/color]**+’, left=’+[color=#009900]**((screen.width/2)-("+w/2+"))**[/color]+’"+"’)} else{ **myWin2**.focus();};void(0);"); }; address = “ **image.jpg** ”; winName = “ **window2** ”; width = [color=#009900] **200** [/color]; height = [color=#009900] **200** [/color]; toolbar = 0; location = 0; directories = 0; status = 0; menubar = 0; scrollbars = 0; resizable = 0; **openWin2** (address, winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable); }

But I noticed that in certain browsers like Mozilla and Netscape, there are margins to the left and top, which I want to get rid of. Can anyone tell me how to get rid of them using the code I already followed? What do I need to add or revise to resolve this problem? I read the site admin’s comments on how to remove margins ([http://www.kirupa.com/developer/flash5/fullscreen.htm](http://www.kirupa.com/developer/flash5/fullscreen.htm)), but it doesn’t address how we do them from a popup in flash, and a popup that opens only an image, NOT an html file. Thanks for any help.

-mynewt
