Welcome to WebmasterWorld Guest from 184.73.126.70

Forum Moderators: open

Message Too Old, No Replies

keyboards in javascript

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

10+ Year Member



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)

10+ Year Member



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

Google [google.com]

T