I am trying to disable a backspace via javascript, but it seems that event.keyCode==8, as google told me, is not a backspace code. As well trying to alert keyCode the backspace did not return any values.... 0.o
my code up to now is:
Any suggestions or alternative ideas how can I prvent the user going back??Code:function checkKey() { //Function to disable "backspace Key" alert (event.keyCode); var key = event.keyCode; if (key == 8) { event.keyCode=9; return (event.keyCode);} } . . <body onKeyPress="checkKey()">


Reply With Quote
Bookmarks