This method is called whenever an event occurs of the type for which the
EventListener interface was registered.
void handleEvent( in Event event );
- The DOM
Eventwhich was triggered.
As the interface is marked with the
handleEvent() method on such an implementation automatically invokes the function.