The EventListener.handleEvent()
method is called by the browser when an event of the specified type is dispatched by an EventTarget
object.
void eventListener.handleEvent(event);
event
Event
object that contains details on the dispatch event.Any return value is ignored by the browser.
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. |
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 |
© 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