//关闭右键

document.oncontex`请输入代码`tmenu=function(){event.returnValue=false;}

//关闭所有f2-f12快捷键 屏蔽 Ctrl+n

document.onkeydown=function(){if(111<event.keyCode<123||(event.ctrlKey&&(event.keyCode==78))){event.keyCode=0;event.returnValue=false;}}

//关闭 f1帮助

document.onhelp=function(){event.returnValue=false;}

//关闭shift+点击链接

document.onclick=function(){if(event.shiftKey&&(event.srcElement.tagName=="A")){event.returnValue=false;}}

//禁止拷贝

document.oncopy=function(){event.returnValue=false;}

//禁止选择

document.onselectstart=function(){event.returnValue=false;}

//禁止粘贴

document.onpaste=function(){event.returnValue=false;}

//禁止 退格键的 前进后退功能

document.onkeydown = function() {}//{if (event.keyCode==8) {event.returnValue=false;}}

//禁止打印

window.onbeforeprint=function(){window.document.body.style.display="none"}
最后修改:2021 年 06 月 21 日 03 : 01 PM
对您有帮助的话,请赏包辣条吧 ^~^