Click to See Complete Forum and Search --> : keyPress and char


pelegk1
07-08-2003, 06:36 AM
how can i know what was the char that was pressed
?
when i do : event.keyCode
i get only the value and not the cahr itself!
how do i get the char itself?
thanks in advance
peleg

pyro
07-08-2003, 06:54 AM
Try something like this:

var char = String.fromCharCode(65); //A
alert (char);