August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.KEYPRESS
The KEYPRESS property of the Event object is used by documents, images, links, and text area form elements to indicate when a key is pressed and held by the user.
Listing 7.226 shows how the KEYPRESS property is used to determine when a key has been pressed. When the KEYPRESS event is captured, it is sent to the handle() function, which informs the user that a key has been pressed.
<html> <head> <title>Example of Event.KEYPRESS</title> </head> <body> <script language="JavaScript"> <!--Hide // sets up the window to capture KEYPRESS events window.captureEvents(Event.KEYPRESS); // function that handles the specific ... |
Read now
Unlock full access