Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Frame/IFrame marginHeight property

Frame/IFrame marginHeight property

Frame/IFrame Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference Frame/IFrame Object