Platform Support
| IE | Mozilla | Netscape | Opera | Safari | Chrome | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLTextAreaElement Constructor() : HTMLTextAreaElement
A textarea input element in an HTML form.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no | ||
HTMLTextAreaElement() : HTMLTextAreaElementA textarea input element in an HTML form. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome |
|---|---|---|---|---|---|---|---|
|
accessKey
: String
Hot-key shortcut for the element.
|
Show Details | 4.0+ | no | no | no | no | no |
|
|||||||
|
cols
: Number
Number of characters wide the element is.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
defaultValue
: String
Initial value for the element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
disabled
: Boolean
If true, indicates that the element is disabled.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
The form that contains this element.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|
|
|||||||
|
name
: String
Name of the textarea element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
readOnly
: Boolean
If true, indicates that the user cannot enter text into or change the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
rows
: Number
Number of rows tall the element is.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
tabIndex
: Number
Position of the element in the tabbing order for the document.
|
Show Details | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
type
: String
Type of input element. ("textarea" for this element.)
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|
|||||||
|
value
: String
Text currently in the textarea element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no |
|
|||||||
Functions
| Method | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
blur() : void
Removes focus from the element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no | ||
|
Returns
|
|||||||||
|
focus() : void
Places focus on the element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no | ||
|
Returns
|
|||||||||
|
select() : void
Selects the text content of the element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | no | ||
|
Returns
|
|||||||||
References
HTMLFormElement|HTMLInputElement|Textarea
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C