# Javascript popup jpeg window?

**URL:** https://forum.kirupa.com/t/javascript-popup-jpeg-window/1879
**Category:** flash
**Created:** [May 4, 2002, 5:19pm UTC](https://forum.kirupa.com/t/javascript-popup-jpeg-window/1879 "2002-05-04T17:19:30Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 4, 2002, 5:19pm UTC](https://forum.kirupa.com/t/javascript-popup-jpeg-window/1879/1 "2002-05-04T17:19:30Z")

</div>

I know how to open an already made html file in a javascript window but what I need do is to open \*\* jpeg\*\* in a javascript window and \*\* without\*\* creating html. With the script I’m using below it opens the window but it leaves left and top margins not at 0 so the picture is a bit off to the buttom right.

```auto
 on (release) { 
getURL("javascript:window.open('pic.jpg','','width=1024,height=768,top=0,left=0,scrollbars=no'); void(0);" ; 
} 

```

I tried putting leftmargins=0 but it still doesn’t work

```auto
 on (release) { 
getURL("javascript:window.open('pic.jpg','','width=1024,height=768,top=0,left=0,leftmargin=0,topmargin=0,scrollbars=no'); void(0);" ; 
} 

```

Anybody know what should I put so it doesn’t leave those margins?

Help really appreciated!  
Thanks!

---

_[View the full topic](https://forum.kirupa.com/t/javascript-popup-jpeg-window/1879)._
