TOC PREV NEXT INDEX

domref



marginHeight


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

Syntax

sHeight = iFrameElement.marginHeight
 
iFrameElement.marginHeight = sHeight
 

Parameters

The sHeight string gives the height of the frame's margin in pixels.

Example

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

Notes

Note that the data type for the value of the marginHeight 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