HTMLOutputElement: type property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ApiRef("HTML DOM")}}
The **type** read-only property of the {{domxref("HTMLOutputElement")}} interface returns the string "output".
Value
The string "output".
Example
js
const output = document.querySelector("output");
console.log(output.type); // "output"Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("HTMLOutputElement")}}
- {{HTMLElement("output")}}