「JavaScrpt」ブラウザのBackSpaceを無効にするメモ

JavaScriptコード:
document.onkeydown = function(e) {
e = e||event;
if(e.keyCode == 8) {
var obj = e.srcElement || e.target;
var tag=obj.tagName.toLowerCase();
if(tag != “input"  && tag != “textarea" && tag != “password")
return false;
}
}

JavaScript

Posted by arkgame