Name
cols — NN n/a IE 4 DOM 1
Synopsis
Read/Write
Defines the sizes or proportions of the column arrangement of frames in a frameset. Column size is defined in one of three ways:
An absolute pixel size
A percentage of the width available for the entire frameset
A wildcard (
*
) to represent all available remaining space after other pixels and percentages have been accounted for
Exercise extreme care when scripting a change to this property. Altering the composition of a frameset on the fly might disrupt scripts that communicate across frames. Reducing the number of columns may destroy documents whose scripts or objects support scripts in other frames or the parent. It is safest to maintain the same number of columns, but use this property to adjust the widths of existing frame columns.
Example
parent.document.all.framesetter.cols = "40%,60%"
Value
Comma-separated list (as a string) of pixel, percentage, or wildcard
(*
) values. Internet Explorer 4 for the Macintosh
exhibits incorrect behavior with some combinations that include a
wildcard value.
Default
100%
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.