Get ASCII Code for the Key

Lakhangarg
Posted by Lakhangarg under JavaScript category on | Views : 3765
This Code will show the ASCII code for the pressed key.
var KeyMatch="";
if(navigator.appName=="Microsoft Internet Explorer")
KeyMatch=event.KeyCode;
else
KeyMatch=event.which;
alert(KeyMatch);


Thanks & Regards
Lakhan Pal Garg

Comments or Responses

Login to post response