I have a java applet on web page that allows editing text. When user tries to modify text, pressing backspace button, browser forwards to previous page. If filter backspace pressing like
var a = function () {
var event = window.event;
if (event.keyCode == 8){
alert('backspace');
return false;
}
}
document.onkeydown = a;
then backspace doesn't propogate to applet, thus not modifying text. The question is how to pass event to the applet ant stop further propagating?