EventListener
Method overview
void handleEvent(in Event event); |
Methods
handleEvent()
This method is called whenever an event occurs of the type for which the EventListener
interface was registered.
JavaScript
Copy Code
void handleEvent( in Event event );
Parameters
event
- The DOM
Event
which was triggered.
Remarks
As the interface is marked with the [function]
flag, all JavaScript Function objects automatically implement this interface. Calling the handleEvent()
method on such an implementation automatically invokes the function.
See also
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/eventlistener