Area.handleEvent()
JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+, Opera3+ Syntax
document.links[num].handleEvent(event)
Description
The handleEvent() method invokes the event handler associated with the event argument. Table 7.4 lists the argument and return value associated with this method.
Type | Item | Description |
---|---|---|
Argument | event | An Event object. |
Returns | The value returned from the event handler associated with event is returned from this method. |
Example
Listing 7.8 creates a Web page for learning more about the toppings used on a pizza. When an area is clicked, the user is taken to a place within the document to learn more about the pizza topping. The handleEvent() ...
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.