Thank you Joe - you are correct, onkeydown does it - onkeypress does not
Pete (Northolt UK)
> Think you need onkeydown to capture these.
Joe
----- Original Message -----
From: "Christine Sun" <Christine_Sun@c...>
To: "javascript" <javascript@p...>
Sent: Monday, August 05, 2002 9:25 PM
Subject: [javascript] RE: Capturing KeyPress'es
> maybe you can write a small function and let it return event.keycode
> and using alert window to display the keycode. it will tell you
> what those keycodes for the arrowkeys
>
> -----Original Message-----
> From: Peter Byers [mailto:pb@s...]
> Sent: Monday, August 05, 2002 1:49 PM
> To: javascript
> Subject: [javascript] Capturing KeyPress'es
>
>
> Hi
> I know howto (and do regularly) use the "onKeyPress" event - getting
> the alpha and numeric key is easy.
>
> BUT
>
> Can anyone tell me how to get (capture by JavaScript) the
four "Arrow"
> keys (Up, Down, Left, Right)
>
>
> Thank you in anticipation (I hope)
> Pete (Northolt UK)
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to