view Event Property

Example

Get the event view:

let myObject = event.view;
Try it Yourself »

Description

The view property returns the Window object where the event occured.

The view property is read-only.


Syntax

event.view

Technical Details

Return Value: An Object.
The Window object where the event occured
DOM Version: DOM Level 2 UI Events

Browser Support

event.view is a DOM Level 2 (2001) feature.

It is fully supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes 9-11


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.