<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复制
相关推荐
-      三种 js 刷新当前页面的方法
-      JS eval加密的代码如何解密?
-      利用$(window).resize()
-      如何用JS判断div中内容为空,当为空时
-      JS原生方法实现jQuery的appen
-      如何用JS判断div中内容为空,当为空时