August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.handleEvent(event)
The handleEvent() method provides a way to invoke a document's event handler, even though the event never happened. The argument associated with this method is listed in Table 7.15.
| Type | Item | Description |
|---|---|---|
| Argument | event | An event object to be handled |
In Listing 7.102, an event handler is designated to handle all document Click events. When the user selects the button labeled 9, the eventHandler() method is used to route the event to the document's event handler.
<html> <h2>Math Quiz</h2> What is 6+3? <form ... |
Read now
Unlock full access