屏蔽Backspace键

document.onkeydown = function(){//屏蔽Backspace键
  if (event.keyCode==8){
     event.keyCode=0;
     event.returnValue=false;
    }
}
原文地址:https://www.cnblogs.com/mabaishui/p/2106710.html