Feedback on: irt.org FAQ Knowledge Base Q475
Worth:
Worth reading
Comments:
I prefer to open a window the size of the image, use the 'hidden' frameset and load the image as background:
<body onLoad="self.focus();" leftmargin=0 topmargin=0 onBlur="parent.close();" background="03.jpg">
Comments:
tried to send a better solution using "send answers..but it doesn't workout"
here is a better solution..
function opennew(x,y,z) //path, width and height as arguments
{
msgWindow= window.open('','','Width='+y+',Height='+z+'resizable=no');
var page="<html><head><title>sample</title></head><body leftMargin='0' topMargin='0' border='0'><div style='POSITION: absolute; TOP: 0; LEFT: 0'><img src="+x+"></div></body></html>"
msgWindow.document.open();
msgWindow.document.write(page);
msgWindow.document.close();
}
Worth:
Worth reading
Comments:
Small error in Q475:
Selva Kumar's function receives the path of the image into x, but does nothing with it.
Otherwise thanks for a brilliant site.