I need to know how to disable the backspace-button for a web-page,ie: don't make the browser take one step back in the browser history.
BUT: I need to be able to use the backspace in form-elements(text,textarea etc.).
Right now, I have managed to disable the backspace-button for the entire page with this code
if(event.keyCode==8 || event.keyCode==13)
<body onkeydown="return checkShortcut()">
But then I'm unable to use the backspace-button to delete characters from the form.