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 |
浏览器兼容性
加载中…