handleEvent() (Function)

Pass an event to the appropriate handler for this object.


JavaScript - 1.2
Netscape - 4.0
Property/method value type:undefined
JavaScript syntax:NhandleEvent(anEvent)
Argument list:anEventAn Event object

This applies to Netscape prior to version 6.0. From that release onwards, event management follows the guidelines in the DOM level 3 event specification.

This method is supported by all objects that respond to events. It is part of the event management suite which allow events to be routed to handlers other than just the one that defaults to being associated with an event.

On receipt of a call to this method, the receiving object will look at its available set of event handler functions and pass the event to an appropriately mapped handler function. It is essentially an event dispatcher that is granular down to the object level.

The argument value is an Event object that contains information about the event.

See also:Button.handleEvent(), captureEvents(), Checkbox.handleEvent(), Document.handleEvent(), Event handler, Event management, FileUpload.handleEvent(), Form.handleEvent(), Input.handleEvent(), Layer.handleEvent(), Password.handleEvent(), RadioButton.handleEvent(), ResetButton.handleEvent(), Window.handleEvent(), Window.routeEvent()


Wrox Instant JavaScript - page - 55