25.280. Textarea: a multiline text input areaDOM Level 2 HTML: Node Element HTMLElement Textarea25.280.1. Properties
In addition to these properties, Textarea objects also mirror HTML attributes with the following properties:
25.280.2. Methods
25.280.3. Event Handlers
25.280.4. HTML SyntaxA Textarea is created with standard HTML <textarea> and </textarea> tags: <form> ... <textarea [ name="name" ] // A name that can be used to refer to this element [ rows="integer" ] // How many lines tall the element is [ cols="integer" ] // How many characters wide the element is [ onchange="handler" ] // The onchange( ) event handler > plain_text // The initial text; specifies defaultValue </textarea> ...</form> 25.280.5. DescriptionA Textarea object represents an HTML <textarea> element that creates a multiline text input field (usually within an HTML form). The initial contents of the text area are specified between the <textarea> and </textarea> tags. You can query and set the text with the value property. Textarea is a form input element like Input and Select. Like those objects, it defines form, name, and type properties. 25.280.6. See AlsoForm, Input; Chapter 18 |