I know how to open already made html file in a javascript but what I need is to open jpeg in a javascript. With the script I'm using below it opens the window but it leaves left and top margin not at 0 so the picture is a bit off to the buttom right.
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
on (release) {
getURL("javascript:window.open('pic.jpg','','width =1024,height=768,top=0,left=0,bgcolor=#000000,left margin=0,topmargin=0,scrollbars=no'); void(0);");
}

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

Thanks