Textarea type property
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. |
|---|
The Textarea object