HTML DOM marginWidth Property
Definition and Usage
The marginWidth property can set or return the page blank on the left and right edges of the frame (in pixels).
Syntax
iframeObject.marginWidth=pixels
Example
The following example will return the page blank of the left and right edges of the iframe:
<html>
<body>
<iframe src="frame_a.htm" id="frame1" marginwidth="50"></iframe>
<br /><br />
<script type="text/javascript">
x=document.getElementById("frame1");
document.write("Left and right margins of the iframe are: ");
document.write(x.marginWidth
);
</script>
</body>
</html>