Method overview
void handleEvent(in nsIDOMEvent event); |
Methods
handleEvent()
This method is called whenever an event occurs of the type for which the EventListener
interface was registered.
void handleEvent( in nsIDOMEvent event );
Parameters
event
- The DOM {{ domxref("Event") }} to register.
Remarks
As the interface is marked with the [function] flag, all JavaScript Function objects automatically implement this interface. Calling the {{ manch("handleEvent") }} method on such an implementation automatically invokes the function.
See also
- {{ spec("https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventListener","Document Object Model Events: EventListener","REC") }}