HTMLTextAreaElement: type property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{ApiRef("HTML DOM")}}

The **type** read-only property of the {{domxref("HTMLTextAreaElement")}} interface returns the string "textarea".

Value

The string "textarea".

Example

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("HTMLTextAreaElement")}}
  • {{HTMLElement("textarea")}}