document.onmousedown=function(ev){
var ev=window.event||ev;
if(ev.button==2){
ev.returnValue=false;
alert("右键被禁止啦!");
}
}
禁止右键
最新推荐文章于 2022-09-08 17:15:19 发布
document.onmousedown=function(ev){
var ev=window.event||ev;
if(ev.button==2){
ev.returnValue=false;
alert("右键被禁止啦!");
}
}