Textarea type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement de tekstregio is.
Voor het Textarea-object wordt dit altijd "textarea
".
Example
Find out which type of form element the textarea element belongs to:
var x = document.getElementById("myTextarea").type;
Syntax
textareaObject.type
Technical details
Return value: | String, text area form element type. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |