When the window is resized, I need to know how big the table is, so I can dynamically fit everything else nicely in-between. The table height is solely dependant on the contents, which are loaded dynamically. How do you calculate the rendered height of the table in JavaScript?
views:
27answers:
1
+3
A:
You can use element.offsetHeight
for this.
var table = document.getElementById("tableId");
alert(table.offsetHeight);
BalusC
2010-04-28 22:59:03