Window:fence 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Window
接口的只读属性 fence
为当前文档上下文返回一个 Fence
对象实例。
Fence
对象仅对嵌入在 <fencedframe>
(通过 FencedFrameConfig
加载)或 <iframe>
(通过不透明 URN 加载)中的文档可用。
备注:
参见 <fencedframe>
的工作原理了解有关 FencedFrameConfig
和不透明 URN 的一些描述。
值
示例
js
window.fence.reportEvent({
eventType: "click",
eventData: JSON.stringify({ clickX: "123", clickY: "456" }),
destination: ["buyer", "seller"],
});
规范
Specification |
---|
Fenced Frame # dom-window-fence |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
fence |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.