August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form. checkbox.click()
The click() method simulates the click event. The clicked property is adjusted acc ordingly when this method is used.
In Listing 7.38, the user is asked to select the door style wanted on his or her new car. If the user selects the 4-door option, the user is alerted that the 4-door has lots of leg room. If the 2-door option is selected, a message is posted to encourage the user to consider the 4-door model. In addition to this message, the message about extra leg room is displayed, thanks to the click() method.
<html> <h2>Car Purchase Sheet</h2> Step1: Please select ... |
Read now
Unlock full access