This property sets or returns the number of columns of frames in the frameset.
Syntax
cols = frameSetElement.cols
frameSetElement.cols = cols
Parameters
cols is the number of columns in the frameset.
Example
// element in HTML: <frameset id="fset" >
fs = document.getElementById("fset");
fs.cols = 2; // two columns of frames
|
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. For example, if you have a frameset like the one below, then blah blah...
Specification
DOM Level 2 -- HTMLFrameSetElement