Easy Tutorial
❮ Prop Time Datetime Prop Script Defer ❯

Textarea type Attribute

Textarea Object

Example

Return the type of the form element:

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

Definition and Usage

The type attribute returns the type of the form element.

For text areas, it is always "textarea".


Browser Support

Attribute
type Yes Yes Yes Yes Yes

Syntax

textareaObject.type

Return Value

| Return Value: | Returns the type of the text area. |


Textarea Object

❮ Prop Time Datetime Prop Script Defer ❯