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 |
---|---|---|
DOMThe definition of 'EventListener.handleEvent()' in that specification. | Living Standard | No change. |
Document Object Model (DOM) Level 2 Events SpecificationThe definition of 'EventListener.handleEvent()' in that specification. | Obsolete | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
handleEvent
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 9 |
Opera
Full support 7 |
Safari
Full support 1 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
Legend
- Full support
- Full support
EventListener.handleEvent() by Mozilla Contributors is licensed under CC-BY-SA 2.5.