对于IE和FireFox
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Block F5 Key In IE & Mozilla</title><script language="Javascript"> var version = navigator.appVersion; function showKeyCode(e) { var keypre = (window.event) ? event.keyCode : e.keyCode; if ((version.indexOf('MSIE') != -1)) { if (keypre == 116) { event.keyCode = 0; event.returnValue = false; return false; } } else { if (keypre == 116) { return false; } } } </script></head><body onload="Javascript:document.body.focus();" onkeydown="return showKeyCode(event)"></body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)