You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

domref



marginWidth


Gets/sets the width of the frame's margin in pixels.

Syntax

sWidth = iFrameElement.marginWidth
 
iFrameElement.marginWidth = sWidth
 

Parameters

The sWidth string gives the width of the frame's margin in pixels.

Example

i = document.getElementById("iframe1");
 
i.marginWidth = 3;
 

Notes

Note that the data type for the value of the marginWidth is a string. This is because the value may be specified as either a number of pixels (e.g., "2") or a percentage, in which case the percent sign is included. A value of "0" means no margin at all.

Specification

DOM Level 2 -- HTMLIFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX