[Javascript] Dynamic resizing of a popup depending of the content
Denti Xavier
denti.x at sage.ch
Wed Apr 4 07:24:06 CDT 2001
Hi all,
I using a image button that is at the bottom of my popup.
<a href="javascript:window.close();"><img border="0"
src="../img/btn_close.gif" width="60" height="12" name="btn_close"></a>
To find it's position I use :
popUpHeight = (200)+btn_close.offsetParent.offsetTop
window.resizeTo(320,popUpHeight);
and this gives me the distance from the top of the popup wich I add to
the minimum size (200) I defined.
It works fine under IE, but not under Netscape, where it says btn_close
not defined.
If anybody has an idea...
Xavier
More information about the Javascript
mailing list