view
Summary
Gets the window object that an event is generated from. [object window]
Property of dom/UIEventdom/UIEvent
Syntax
Note: This property is read-only.
var eventWindow = event.view;
Return Value
Returns an object of type DOM NodeDOM Node
The window object on which the event occurred.
Usage
Use this property to determine the window object on which the event has occurred.
Notes
Use initUIEvent to set the value of this property.
Related specifications
- DOM Level 3 Events
- Working Draft
Attributions
Mozilla Developer Network : [event.view Article]
Microsoft Developer Network: [view Property Article]