<script type="text/javascript">//禁止ctrl复制
document.onkeydown=function(){
if((event.ctrlKey) && (window.event.keycode==67)){
event.returnValue=false;alert("Ctrl+C被禁止啦!");
}
}
document.onmousedown=function(){
if(event.button==2){
event.returnValue=false;
alert("右键被禁止啦!");
}
}
</script>js禁止鼠标右键和禁止ctrl+c复制
未经允许不得转载:JavaScript » js禁止鼠标右键和禁止ctrl+c复制
相关推荐
-      使用iframe点击里面的链接正常跳转
-      如何用JS判断div中内容为空,当为空时
-      利用js触发submit按钮的两种方法
-      js禁止鼠标右键和禁止ctrl+c复制
-      如何用JS判断div中内容为空,当为空时
-      JS eval加密的代码如何解密?