document.onkeydown= function(event) { event=event||window.event; if (event.originalTarget==document && event.keyCode && event.keyCode==8) return false };