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



frameBorder


frameBorder gets/sets the border around the current IFRAME.

Syntax

sBorder = iFrameElement.frameBorder
 
iFrameElement.frameBorder = sBorder
 

Parameters

sBorder gives the border width in number of pixels as string.

Example

// create a border around the current iframe
 
i= document.getElementById("iframe-1");
 
i.frameBorder = 2; 
 

Notes

Note that the data type for the value of the frameBorder 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 border at all.

Specification

DOM Level 2 -- HTMLFrameElement


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