posted 19 years ago
Hi
I have a table with width set in percentage. Now I need to know the width of the table in pixels. Is this possible
<table width=100% border=0 id="MyTable">
<tr><td>Sample text</td></tr>
</table>
If I try "alert(document.getElementById("MyTable").width);" I get 100% but I need the width in pixels as the pixels occupied by the table will differ when the window is resized
Thx
Anu