HTMLTextAreaElement: type property
HTML DOM
HTML DOM
The type read-only property of the HTMLTextAreaElement interface returns the string "textarea".
Value
The string "textarea".
Example
const textArea = document.querySelector("textarea");
console.log(textArea.type); // "textarea"
Specifications
Browser compatibility
See also
- HTMLTextAreaElement
- textarea