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