Frame/IFrame marginHeight property

HTML DOM Frame/IFrame marginHeight property Frame/IFrame object

Definitions and usages

The marginHeight property sets or returns the value of the marginHeight element in the frame/iframe element.

The top and bottom pages of the marginheight property frame are blank, in pixels.

Grammar

frameObject.marginHeight= pixels

or

iframeObject.marginHeight= pixels


Browser support

HTML DOM Frame/IFrame marginHeight property HTML DOM Frame/IFrame marginHeight property HTML DOM Frame/IFrame marginHeight property HTML DOM Frame/IFrame marginHeight property HTML DOM Frame/IFrame marginHeight property

The marginHeight property is supported by all major browsers


Returns the value of the marginheight property:

document.write(document.getElementById("myframe").marginHeight);

Try it out . . .


HTML DOM Frame/IFrame marginHeight property Frame/IFrame object