Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Textarea type property

Textarea type property

Textarea Object Reference The Textarea object

Example

Return the type of the form element:

var

x

=

document

.

getElementById

(

"

myTextarea

"

)

.

type

;

Try it »


Definition and Usage

The type property returns the type of the form element.

For a text box it is always "textarea".


Browser support

property
type Yes Yes Yes Yes Yes

Syntax

textareaObject.type


Return Value

Return value: Returns the type of the text box.

Textarea Object Reference The Textarea object