View Full Version : javascript and the keyboard

12-30-2003, 09:13 PM
is there any way to get javascript to respond to the keyboard?
if i press "q" then an alert would come up, or something.

ive seen some things like onKeyPress("q")

but ive had little sucsess makin it work. so if you know how, or if its possible, please inform me...

thanks in advance...

Willy Duitt
12-30-2003, 11:22 PM
Check this page (http://www10.brinkster.com/A1ien51/Scripts/KeyCode.htm) out.


Willy Duitt
12-30-2003, 11:27 PM
I almost forgot.
You may also find this page (http://www.w3.org/2002/09/tests/keys.html) helpful.