TEXTAREA.cols (Property)

The number of columns that a TextArea may contain.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myTEXTAREA.cols

The text area in a form is sized by columns and rows in the default font used for input items. This property reflects the COLS HTML tag attribute in the <TEXTAREA> HTML tag that instantiates this object.

Style sheets are about the only way you can control the appearance of these cells because it is the only way the default input font can be changed. If the font size changes then the size of the TEXTAREA extent rectangle must change too. This might affect the layout of the page.