javascript FRAMESET cols
cols | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 |
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:
|
|
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. Early versions of Netscape 6 may not render changes correctly. Also, if your scripts rely on the frameset's onresize event handler, be sure to test on as many platforms as possible that the event is firing in response to script changes of these properties. |
|
Example | |
parent.document.getElementById("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% |
parent.document.getElementById("framesetter").cols = "40%,60%";
Powered by Linode.