[Javascript] OPEN WINDOW TO EXACT SIZE

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Jun 7 04:17:24 CDT 2001


>     I am opening a pop up window that displays an image. I need the window
>to be the exact size of the image. Is there a way to do this without 
>knowing
>how big the image is going to be?

In the popup:

<BODY
onLoad="if  (self.resizeTo) 
self.resizeTo(document.images[0].width,document.images[0].height"> (one 
line!)

ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list