This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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