I want to use an onkeydown() on my web site and the web site to know which key I pressed. Specifically know I pressed the arrow keys and store which key was pressed in a variable.
@KorFeb 24.2010 — # must work on all browsers.[/QUOTE] Impossible for [I]all the keys in all the browsers[/I]. Some browsers do not capture some keys, some browsers return weird values on certain events.
But if you use onkeydown as an event and you need only to capture the arrow keys that is to be done: See: