<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
PPK,
<p>Very interesting that that is possible.
<p>A small obstacle still to be got around I think.
<br>If the URL sent to window open is myImage.jpg then there will be no
body tag.
<br>The workaround would be to have an HTML file which included your body
tag and send the image file name as a query string attached to the URL
of the html page
<p>"mypage.htm?myImage.jpg"
<p>Then script in mypage.htm writes the image tag
<p><tt>document.write('&lt;IMG src="',window.location.search.substring(1),'">');</tt>
<p>If image names had non alpha characters (eg spaces [yuk]) then the code
would have to escape/unescape the image file name, I think.
<p>Rodney
<p>Peter-Paul Koch wrote:
<blockquote TYPE=CITE>>&nbsp;&nbsp;&nbsp;&nbsp; I am opening a pop up window
that displays an image. I need the window
<br>>to be the exact size of the image. Is there a way to do this without
<br>>knowing how big the image is going to be?
<p>In the popup:
<p>&lt;BODY
<br>onLoad="if&nbsp; (self.resizeTo)
<br>self.resizeTo(document.images[0].width,document.images[0].height">
(one
<br>line!)
<p>ppk
<br><a href="http://www.LaTech.edu/mailman/listinfo/javascript"></a>&nbsp;</blockquote>

<p>--
<br>Shop@ssistant Add-ons and Developer Workshops
<br><A HREF="http://www.aflyingstart.net/addons/">http://www.aflyingstart.net/addons/</A>
<p>Enquiries regarding Shop@ssistant Classic training :
<br>Call 01256 880770
<p>Rodney Myers
<br>Based in Oxford, England
<br>Technical Director, Shop@ssistant eCommerce Solutions
<br>&nbsp;</html>