document.onmousedown=function(ev){
var ev=window.event||ev;
if(ev.button==2){
ev.returnValue=false;
alert("右键被禁止啦!");
}
}
禁止右键
最新推荐文章于 2020-04-02 22:43:11 发布
document.onmousedown=function(ev){
var ev=window.event||ev;
if(ev.button==2){
ev.returnValue=false;
alert("右键被禁止啦!");
}
}