NotRestoredReasons: id 屬性

可用性有限

此特性不是基線特性,因為它在一些最廣泛使用的瀏覽器中不起作用。

實驗性: 這是一項實驗性技術
在生產中使用此技術之前,請仔細檢查瀏覽器相容性表格

NotRestoredReasons 介面的只讀屬性 id 返回一個字串,表示文件所在的 <iframe> 元素的 id 屬性值(例如 <iframe id="foo" src="...">)。

字串。

如果文件不在 <iframe> 中,或者 <iframe> 沒有設定 id,則 id 將返回 null

示例

有關示例,請參閱 Monitoring bfcache blocking reasons

規範

規範
HTML
# dom-not-restored-reasons-id

瀏覽器相容性

另見