禁止右键与全选的js
2009-09-17 15:30 xiaosuo 阅读(487) 评论(0) 收藏 举报
<script language="JavaScript">
document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
document.onselectstart=new Function("event.returnValue=false;"); //禁止全择,也就是无法复制
</script>
document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
document.onselectstart=new Function("event.returnValue=false;"); //禁止全择,也就是无法复制
</script>
浙公网安备 33010602011771号