August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onChange="command"
The onChange event handler of an instance of a Select object is fired when the option selected in the select box is changed. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using other event handlers or methods that are fired when focus is placed on or away from the select box.
Listing 7.471 has a single select box. If the user changes the selected option, an alert box is displayed showing the option that has been selected.
<html> <head> <script language="JavaScript"> ... |
Read now
Unlock full access