August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onKeyDown="command"The onKeyDown event handler of an instance of a Textarea object is fired when a key is pressed down within the text area. 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 the focus is placed on or away from the text area or other key-related events are used. The onKeyDown event handler is called followed by a onKeyPress event handler.
Listing 7.516 has a single text area. If the user presses a key while the focus is on the text area, an alert box is displayed as soon as the key is pressed.
Read now
Unlock full access