Menu
Wondering how I can make the new window that pops up with my image close when you click on the image using the following script example…
var imgWin = window.open(“”,’imgWin’,’width=500,height=10,left=25,top=75,toolbar=0,status=0,scrollbars=no’);
with (imgWin.document) {
writeln(‘<body onload=”self.focus();”><img id=”pic” style=”display:none” /></body></html>’);
}
Something like…
imgWin .document.img.onclick = window.close();