View Full Version : Table's height
soniyakapoor03
01-30-2006, 09:51 AM
hi,
How to get Table's Height on loading the page.
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>
...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.