The 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.
Syntax
var view = event.view;
viewis a reference to anAbstractViewobject.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Document Object Model (DOM) Level 3 Events Specification The definition of 'UIEvent' in that specification. |
Working Draft | From Document Object Model (DOM) Level 2 Events Specification, changed the type of view from AbstractView to WindowProxy. |
| Document Object Model (DOM) Level 2 Events Specification The definition of 'UIEvent' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | (Yes) | ? | (Yes) | ? |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | (Yes) | ? | (Yes) | ? |
Document Tags and Contributors
Tags:
Contributors to this page:
erikadoyle,
fscholz,
teoli,
MHasan,
kscarfone,
Kartik_Chadha,
Sheppy,
Matej Lednar,
Nickolay,
Jabez,
Ptak82,
Dria,
Shaver,
JesseW,
cbiesinger
Last updated by:
erikadoyle,