You are here: Newbie Q, clientHeight and offsetHeight « HTML « IT news, forums, messages
Newbie Q, clientHeight and offsetHeight

Posted by codefragment on 01/28/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация