Javascript function for KeyPress?

Mario Di Vaio <[email protected]>
Newsgroups gmane.comp.web.links.list
Message-ID <[email protected]>
Hi,

I'm new to this mailing list.
I'm developing a web page for links browser.
What I need is the DOM Documentation for keypress events.
In particular, I need to get this code working for links:

<html>
<body>
<form>
<input TYPE=text SIZE=30 NAME="T1" onKeyPress="alert(event.charCode)">
</form>
</body>
</html>

As you can see, the onKeyPress event is working and the alert does too; but he
cannot give the key code (for example, A = 33, etc...)

Any idea how to get this working?

TKS!



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
" Impara i trucchi di Posizionamento sui motori di ricerca, pubblicita'
on-line, email marketing! Vedi http://www.madri.com/corso1/?EMAILk0403b "
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1817&d=14-10
_______________________________________________
Links-list mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/links-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.