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 October 2018.

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 Standard
# dom-output-type-dev

Browser compatibility

BCD tables only load in the browser

See also