...

View Full Version : is there any way to get table height when



frontline
01-14-2003, 05:28 PM
Hello
say i have table defined in the page but i didn't set the height of the table and
its growing dynamically (based on output from the server ) now im trying
after the page is done loading ( onload=int()) to get the table height with no luck
is there any way to get the table height ? even if i did not set any ( that is written height="300px") ?

beetle
01-14-2003, 07:02 PM
<body onload="alert( document.getElementById( 'myTable' ).offsetHeight );">

<table id="myTable">
<tr>
<td>One</td>
<td>Two</td>
<td>three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>three</td>
</tr>
<tr>
<td>One</td>
<td>Two</td>
<td>three</td>
</tr>
</table>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum