...

View Full Version : Table's height



soniyakapoor03
01-30-2006, 10:51 AM
hi,
How to get Table's Height on loading the page.

Kor
01-30-2006, 10:54 AM
use read-only offsetHeight attribute. The returned value is a number. The measurement unit is px.



<script type="text/javascript">
onload=function(){
var tabHeight = document.getElementById('tabid').offsetHeight;
alert(tabHeight)
}
</script>

...
<table id="tabid">
...
...
</table>
...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum