HTMLTextAreaElement: type property

The type read-only property of the HTMLTextAreaElement interface returns the string "textarea".

Value

The string "textarea".

Example

js
const textArea = document.querySelector("textarea");
console.log(textArea.type); // "textarea"

Specifications

Browser compatibility

See also