Checkbox.handleEvent()
JavaScript 1.2+ Nav4+ Syntax
document.form.checkbox.handleEvent(event)
Description
The handleEvent() method provides a way to invoke a check box's event handler, even though the event never happened. The argument associated with this method is listed in Table 7.8.
Argument | Description |
---|---|
event | An Event object to be handled |
Example
In Listing 7.42, the user is asked to select the engine wanted in his or her new car. If the user selects the V6 engine, the user is alerted that the V6 has lots of power. If the 4 cylinder is selected, a message is posted to encourage the user to consider the V6. The click event is passed to the first check box via 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.