<The script type="text/javascript language=" javascript charset="utf-8" >
document. The onkeydown=function (event) {
var=the event e | | window. The event | | the arguments. The callee. The caller. The arguments [0];
if (e &&e.k eyCode==27) {//press Esc
//to do
}
if (e &&e.k eyCode==113) {//press F2
//to do
}
if (e &&e.k eyCode==13) {//enter key
//to do
}
};
</script>

you might be interested in the article:

  • js keylogger implementation (compatible with FireFox and Internet explorer)
  • capture keyboard events (and compatible with all browsers)


This concludes the body part