Welcome to WebmasterWorld Guest from 54.196.208.6

Forum Moderators: open

Message Too Old, No Replies

keyboards in javascript

     
4:47 pm on Apr 30, 2003 (gmt 0)

New User

10+ Year Member

joined:Apr 5, 2003
posts:17
votes: 0


I'm working on a website in which it would be useful for an event to happen when a user pressed a specific key (i.e. one of the arrow keys) as oppose to simply "onkeypress" for any key. Is there any way I can get the browser to recognise which key the user has pressed?
Thanks.
5:40 pm on Apr 30, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:May 9, 2001
posts:416
votes: 0


Apparently onkeydown will accept a cursor key press, but you're limited to IE.

Google [google.com]

T