HTML DOM marginHeight Property
Complete IFrame Object Reference
Definition and Usage
The marginHeight property sets or returns the top and bottom margins of a frame
(in pixels).
Syntax
iframeObject.marginHeight=pixels
|
Example
The following example returns the top and bottom margins 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>
|
Try-It-Yourself Demos
Return the top and bottom margins of an iframe
Complete IFrame Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|