Javascript popup jpeg window?

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.

 on (release) { 
getURL("'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

 on (release) { 
getURL("'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!


you could do it by placing the image in an HTML page and putting <body TOPMARGIN=0 LEFTMARGIN=0> as your body tag. But you didn’t want that. I’m not sure otherwise. Maybe you should try a Javascript Forum, someone there might know.

yeah but the problem is that i have ALOT of jpegs so I really need that option :frowning: