EventListener.handleEvent()

The EventListener method handleEvent() method is called by the user agent when an event is sent to the EventListener, in order to handle events that occur on an observed EventTarget.

Syntax

eventListener.handleEvent(event);

Parameters

event
An Event object describing the event that has been fired and needs to be processed.

Return value

undefined. If you return a value, the browser will ignore it.

Specifications

Specification Status Comment
DOM
The definition of 'EventListener.handleEvent()' in that specification.
Living Standard No change.
Document Object Model (DOM) Level 2 Events Specification
The definition of 'EventListener.handleEvent()' in that specification.
Obsolete Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 12 1.0 (1.7 or earlier) 9.0 7 1.0
Feature Android Webview Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support

(Yes)

(Yes)

12 1.0 (1.0) 9.0 6.0 1.0

Document Tags and Contributors

Contributors to this page: Sheppy, TimothyGu
Last updated by: Sheppy,