Frame/IFrame marginHeight property
Frame/IFrame Object
Definition and Usage
The marginHeight property can set or return the value of the marginHeight attribute of the frame/iframe element.
The marginheight attribute specifies the top and bottom page margins of the frame (in pixels).
Syntax
frameObject.marginHeight=
pixels
or
iframeObject.marginHeight=
pixels
Browser support





All major browsers support the marginHeight property
Example
Example
Return the value of the marginheight property:
document.write(document.getElementById("myframe").marginHeight);
Try it »
Frame/IFrame Object