document.onkeyup = function(event){
var key_press = String.fromCharCode(event.keyCode);
var status = document.getElementById('status');
status.innerHTML = "UP Event Fired For : "+key_press;
if (key_press == "38") {
&&
} if (key_press == "39") {
&&
} else if (key_press == "40") {
&&
} else if (key_press == "37") {
alert ("First born beauty");
}
});
}
Hello, I try to make the purpose of this code to action event/popup when arrow keys have been pressed in the right order (left>up>right>down) important that it is body that listens. :)