Javascript Reference
Categories: TEXTAREA

javascript TEXTAREA cols

@March 15, 2008, 1:22 a.m.
colsFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Specifies the width of the editable space of the textarea element. The value represents the number of monofont characters that are to be displayed within the width. When the font size can be influenced by style sheets, the actual width changes accordingly.

 
Example
 
document.forms[0].comments.cols = 60;
 
Value

Integer.

 
Default

Varies with browser and operating system.


Powered by Linode.