August 1999
Intermediate to advanced
1488 pages
72h 53m
English
submit.handleEvent(event)
The handleEvent() method of the Submit object invokes the handler for the event specified. This method was added in JavaScript 1.2.
Listing 7.484 has a single text box. The script tells the browser that it wants to intercept all Click events and that it wants the myClickHandler function to handle them. Within this function, the handleEvent() method of the submit button has been specified to handle the click.
When the user clicks anywhere on the page, the onClick event handler in the <input type=SUBMIT> tag calls a function to change the text in the text box. The change is nothing more than a simple number that is incremented ...
Read now
Unlock full access