UIEvent.view read-only property returns the WindowProxy object from which the event was generated. In browsers, this is the Window object the event happened in.

句法

var view = event.view;
					
  • view is a reference to an AbstractView 对象。

规范

规范 状态 注释
DOM (文档对象模型) 3 级事件规范
在该规范中的 UIEvent 定义。
过时 DOM (文档对象模型) 2 级事件规范 , changed the type of view from AbstractView to WindowProxy .
DOM (文档对象模型) 2 级事件规范
在该规范中的 UIEvent 定义。
过时 初始定义。

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
view Chrome Yes Edge 12 Firefox Yes IE 9 Opera Yes Safari Yes WebView Android Yes Chrome Android Yes Firefox Android Yes Opera Android Yes Safari iOS Yes Samsung Internet Android Yes

图例

完整支持

完整支持

元数据

  • 最后修改: