25.34. The Textarea Object

The Textarea object corresponds to HTML elements created through <TEXTAREA ...> and </TEXTAREA>. Textarea objects are normally accessed through the elements array of the enclosing Form object or, if both it and the form are named, through document.formName.textareaName.

Properties

defaultValue This property is the initial value as given by the text that appears between <TEXTAREA> and</TEXTAREA>. It is read-only.

form This property is the Form object containing the text area. It is read-only.

name This property is the value of the NAME attribute. It is read-only.

type This read-only property contains the value textarea.

value This property gives the current text contained in the text area. It is read/write; however, there ...

Get Core Web Programming, Second Edition 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.