HTMLOutputElement: type property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016.
The type read-only property of the HTMLOutputElement interface returns the string "output".
Value
The string "output".
Example
js
const output = document.querySelector("output");
console.log(output.type); // "output"
Specifications
| Specification |
|---|
| HTML> # dom-output-type-dev> |
Browser compatibility
Loading…