Frame/IFrame marginWidth property

HTML DOM Frame/IFrame marginWidth property Frame/IFrame object

Definitions and usages

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

The marginwidth property specifies page white space in pixels at the left and right edges of the frame.

Grammar

frameObject.marginWidth= pixels

or

iframeObject.marginWidth= pixels


Browser support

HTML DOM Frame/IFrame marginWidth property HTML DOM Frame/IFrame marginWidth property HTML DOM Frame/IFrame marginWidth property HTML DOM Frame/IFrame marginWidth property HTML DOM Frame/IFrame marginWidth property

The marginWidth property is supported by all major browsers


Returns the value of the marginwidth property:

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

Try it out . . .


HTML DOM Frame/IFrame marginWidth property Frame/IFrame object