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.
eventListener.handleEvent(event);
eventEvent object describing the event that has been fired and needs to be processed.undefined. If you return a value, the browser will ignore it.
| 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. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 1 | 12 | 1 | 9 | 7 | 1 |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | 1 | 18 | 12 | 4 | 6 | 1 | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/EventListener/handleEvent