Javascript Reference
Categories: TEXTAREA

javascript TEXTAREA rows

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

Read/Write  

Specifies the height of the textarea element based on the number of lines of text that are to be displayed without scrolling. The value represents the number of monofont character lines that are to be displayed within the height before the scrollbar becomes active. When the font size can be influenced by style sheets, the actual height changes accordingly.

 
Example
 
document.forms[0].comments.rows = 6;
 
Value

Integer.

 
Default

2 (IE/Windows); 1 (IE/Macintosh); -1 (Netscape 6, meaning that the attribute or property hasn't been set).


Powered by Linode.