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



cols


This property sets or returns the size of the columns of frames in the frameset.

Syntax

cols = frameSetElement.cols
 
frameSetElement.cols = cols
 

Parameters

cols is the size of columns in the frameset as a comma-separated list.

Example

// element in HTML: <frameset id="fset" >
 
fs = document.getElementById("fset");
 
fs.cols = "200, *"; // two columns of frames, first 200px
 

Notes

The cols and rows properties are often used together to lay out the dimensions of a frameset in HTML. If these are not specified, then the frameset simply counts the number of frames it manages. The number of values in the cols attribute determines how many frames there are; the "*" specifies that the column take up all of the remaining space.

Specification

DOM Level 2 -- HTMLFrameSetElement


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