TEXTAREA.rows (Property)

The number of rows in a text area.

Availability:

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.rows

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

Style sheets are about the only practical 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.