August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onChange="command"The onChange event handler of an instance of a Text object is fired when the text in the box is modified. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using other events or methods that are fired when focus is placed on or away from the text box.
Listing 7.500 has a single text box. If the user changes the text and then shifts the focus away from the text box by clicking elsewhere or pressing Return, the default text is placed back in the text box.
<html> <head> <script language="JavaScript"> ... |
Read now
Unlock full access