HTML DOM marginHeight Property
Definition and Usage
The marginHeight property can set or return the page blank at the top and bottom of the frame (in pixels).
Syntax
iframeObject.marginHeight=pixels
Example
The following example can return the page blank at the top and bottom of the iframe:
<html> <body> <iframe src="frame_a.htm" id="frame1" marginheight="50"></iframe> <br /> <script type="text/javascript"> x=document.getElementById("frame1"); document.write("Top and bottom margins of the iframe are: "); document.write(x.marginHeight); </script> </body> </html>