View event attribute

Definition and Usage

The view event attribute returns a reference to the Window object where the event occurred.

Instance

Get event view:

var x = event.view;

The result of x is:

[object Window]

Try It Yourself

Syntax

event.view

Technical Details

Return Value: Reference to the Window Object.
DOM Version: DOM Level 2 Events

Browser Support

The numbers in the table indicate the first browser version that fully supports the property.

Properties Chrome IE Firefox Safari Opera
view Support 9.0 Support Support Support