view Event Property
Example
Get the event view:
var x = event.view;
The result of x will be:
[object Window]
Try it Yourself »
Definition and Usage
The view event property returns a reference to the Window object where the event occured.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| view | Yes | 9.0 | Yes | Yes | Yes |
Syntax
event.view
Technical Details
| Return Value: | A reference to the Window object |
|---|---|
| DOM Version: | DOM Level 2 Events |