IFRAME.marginWidth (Property)

A measure of the horizontal margin to the left and right of 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.marginWidth

Margins flow round the entire frame. You cannot operate on them individually but you can operate on the vertical and horizontal margins separately.

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 to the left and right of the frame.

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


See also:Frame.marginWidth