CD-552 Part (Database web hosting) VI . Appendixes Listing 29-16 (continued)

CD-552 Part VI . Appendixes Listing 29-16 (continued)

keyCode Property


Eventevent.keyCode
onKeyDown:
onKeyPress:
onKeyUp:
The following are some specific tasks to try with the page to examine key codes (if you are not using a browser set for English and a Latin-based keyboard, your results may vary): 1. Enter a lowercase letter a . Notice how the onKeyPress event handler shows the code to be 97, which is the Unicode (and ASCII) value for the first of the lowercase letters of the Latin alphabet. But the other two events record just the key s code: 65. 2. Type an uppercase A via the Shift key. If you watch closely, you see that the Shift key, itself, generates the code 16 for the onKeyDown and onKeyUp events. (IE) event.keyCode
You want to have a cheap webhost for your apache application, then check apache web hosting services.

Leave a Reply