Textarea typeProperty
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. |
Other Extensions
Textarea Object