HTMLOutputElement: type 屬性

Baseline 已廣泛支援

此功能已相當成熟,可在多種裝置和瀏覽器版本上執行。自 ⁨2016 年 8 月⁩ 起,所有瀏覽器均已提供此功能。

HTMLOutputElement 介面的只讀 **type** 屬性返回字串 "output"

字串 "output"

示例

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

規範

規範
HTML
# dom-output-type-dev

瀏覽器相容性

另見