Name

rows — NN n/a IE 4 DOM 1

Synopsis

Read/Write

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 4/Windows); 4 (IE 4/Macintosh).

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.