<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>Maby Navigator doesn't understand the 'name' object maybe it is depricated, I'm not familiar with Navigator that much, but why don't you try out&nbsp;more implicit identification of you're object (img) with &lt;img ID='btn_close...&gt; instead of &lt;img Name='btn_close'. But before you do that, please take a moment in checkin if you correctly spelled the ID,that is NAME of the image in you're reference, even if you didn't make that error in you're question.</DIV> <DIV>But nayway, if this doesn't solve youre problem, you will have to spent some time in reading documentation&nbsp;on Netscape references, because the problem may not be in missunderstanding the rreferal object but the other part '...offsetParent.offsetTop'!<BR></DIV> <DIV><BR></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Denti Xavier</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Wednesday, April 04, 2001 2:26 PM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;[Javascript] Dynamic resizing of a popup depending of the conten</DIV> <DIV><BR></DIV>Hi all, <BR><BR>I using a image button that is at the bottom of my popup.<BR><BR>&lt;a href="javascript:window.close();"&gt;&lt;img border="0"<BR>src="../img/btn_close.gif" width="60" height="12" name="btn_close"&gt;&lt;/a&gt; <BR><BR>To find it's position I use :<BR><BR>popUpHeight = (200)+btn_close.offsetParent.offsetTop<BR><BR>window.resizeTo(320,popUpHeight);<BR><BR>and this gives me the distance from the top of the popup wich I add to<BR>the minimum size (200) I defined. <BR>It works fine under IE, but not under Netscape, where it says btn_close<BR>not defined.<BR><BR>If anybody has an idea... <BR><BR>Xavier <BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR> <DIV></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></DIV>