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