HTMLTextAreaElement : HTMLElement

A textarea input element in an HTML form.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
3.0+1.0+2.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
A textarea input element in an HTML form.
3.0+1.0+2.0+7.0+1.0+no
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Hot-key shortcut for the element.
4.0+nonononono
 
Number of characters wide the element is.
4.0+1.0+6.0+7.0+1.0+no
 
Initial value for the element.
3.0+1.0+2.0+7.0+1.0+no
 
If true, indicates that the element is disabled.
4.0+1.0+6.0+7.0+1.0+no
 
The form that contains this element.
3.0+1.0+2.0+7.0+1.0+no
 
Name of the textarea element.
3.0+1.0+2.0+7.0+1.0+no
 
If true, indicates that the user cannot enter text into or change the element.
4.0+1.0+6.0+7.0+1.0+no
 
Number of rows tall the element is.
4.0+1.0+6.0+7.0+1.0+no
 
Position of the element in the tabbing order for the document.
4.0+1.0+3.0+7.0+1.0+no
 
Type of input element. ("textarea" for this element.)
3.0+1.0+2.0+7.0+1.0+no
 
Text currently in the textarea element.
3.0+1.0+2.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Removes focus from the element.
3.0+1.0+2.0+7.0+1.0+no
 
Places focus on the element.
3.0+1.0+2.0+7.0+1.0+no
 
Selects the text content of the element.
3.0+1.0+2.0+7.0+1.0+no
 

References

HTMLFormElement | HTMLInputElement | Textarea

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Constructor Detail

HTMLTextAreaElement HTMLTextAreaElement()

A textarea input element in an HTML form.

Visibility
internal

Property Detail

String accessKey

Hot-key shortcut for the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Number cols

Number of characters wide the element is.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String defaultValue

Initial value for the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Boolean disabled

If true, indicates that the element is disabled.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/stylesheets.html

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

HTMLFormElement form - read only

The form that contains this element.

String name

Name of the textarea element.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/attributes.html

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Boolean readOnly

If true, indicates that the user cannot enter text into or change the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Number rows

Number of rows tall the element is.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/table_access.html

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Number tabIndex

Position of the element in the tabbing order for the document.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String type - read only

Type of input element. ("textarea" for this element.)

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

String value

Text currently in the textarea element.

For examples, see the quirksmode test page:

http://www.quirksmode.org/dom/tests/attributes.html

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

Method Detail

blur() : void

Removes focus from the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

focus() : void

Places focus on the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C

select() : void

Selects the text content of the element.

Availability

HTML DOM Level 1 | HTML DOM Level 2 | W3C