Re: Javascript key event codes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Javascript key event codes

From: Evertjan. <exjxw.hannivoort@interxnl.net>
Date: Tue Nov 15 2005 - 20:45:13 CET

Aaron Gray wrote on 15 nov 2005 in comp.lang.javascript:

> I am wondering if there is a table of JavaScript event key codes ?
>
> Thanks in advance,
>

usually I make a small local IE-only html-page, with only:

<div id=z>x</div>
<input onkeydown='this.value="";z.innerHTML=event.keyCode;'>

or more usefull:

<input onkeyup='
z.innerHTML+=this.value+" = "+
event.keyCode+"<br>";
this.value=""'>
<div id=z></div>

-- 
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
Received on Mon Nov 21 03:30:26 2005