IFRAME.marginHeight (Property)

A measure of the vertical margin above and below the <IFRAME> object.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myIFRAME.marginHeight

Margins flow round the entire frame. You cannot operate on all four individually but you can operate on the vertical and horizontal margin pairs independently.

That means the top and bottom margin must be the same, as must the left and right.

This property is the size of the margins at the top and bottom of the frame.

This is a bit like the vspace property but since neither seems to have any effect it is difficult to prove they operate independently.


See also:Frame.marginHeight