Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

Window: event property

The read-onlyWindow propertyevent returns theEvent which is currently being handled by the site's code. Outside the context of an event handler, the value is alwaysundefined.

Youshould avoid using this property in new code, and should instead use theEvent passed into the event handler function. This property is not universally supported and even when supported introduces potential fragility to your code.

Note:This property can be fragile, in that there may be situations in which the returnedEvent is not the expected value. In addition,Window.event is not accurate for events dispatched withinshadow trees.

Specifications

Specification
DOM
# dom-window-event

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp