Textarea typeProperty

Textarea 对象参考手册Textarea Object

Example

Returns the type of the form element:

var x = document.getElementById("myTextarea").type;

Try it yourself »

Definition and Usage

The type property returns the type of the form element.

For a textarea 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 textarea.


Textarea 对象参考手册Textarea Object

Other Extensions