MDN self-hosted library · e01.org

HTMLTextAreaElement: type property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

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