TOC PREV NEXT INDEX

domref



frameBorder


frameBorder gets/sets the border around the current frame.

Syntax

border = frameElement.frameBorder
 
frameElement.frameBorder = border
 

Parameters

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

Example

// create a border around the current frame
 
f = document.getElementById("frame-1");
 
f.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