Javascript Reference
Categories: IFRAME

javascript IFRAME height, width

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

Read/Write  

Provide the pixel or percentage measure of the iframe element's height and width.

 
Example
 
document.getElementById("myIframe").height = "200";
document.getElementById("myIframe").width = "500";
 
Value

Length string.

 
Default

300 (width); 150 (height).


Powered by Linode.