Posted by codefragment on 11/25/44 11:48
Hi
I beleive that offsetHeight is clientHeight plus border plus
scrollbars. So why here
where there is no border or scrollbars is clientHeight 0 and
offsetHeight: 19.
ta
<body onload=func()>
<form>
<span id=theSpan>hi</span>
<script>
function func()
{
alert(theSpan.clientHeight);
alert(theSpan.offsetHeight);
}
</script>
</form>
</body>
Navigation:
[Reply to this message]
|