Javascript Reference
Categories: TABLE

javascript TABLE height, width

@March 15, 2008, 1:22 a.m.
height, widthFirefox/Netscape/NN 6 (width only) IE 4 Chrome/Safari/DOM 1 (width only)  

Read/Write  

Specify the height and width in pixels of the element. Changes to these values are immediately reflected in reflowed content on the page. Only the width property is available in Netscape 6 (and the W3C DOM), as the table's height is considered to be the sum of the highest cell in each row.

 
Example
 
document.getElementById("myTable").height = 250;
 
Value

Integer.

 
Default

None.


Powered by Linode.