[Javascript] element height

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Jan 3 05:02:46 CST 2002


>How do I get the height of an element in Netscape 6.0
>
>In IE I use
>
>  document.getElementById("mydiv").clientHeight
>
>but this doesn't appear to work in NS!

document.getElementById("mydiv").offsetHeight

Also works in IE. I didn't know you could ask for the clientHeight of an 
element!

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




More information about the Javascript mailing list