<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>
本文介绍了一种通过JavaScript禁用浏览器网页右键菜单及选中复制功能的方法。利用此方法,可以有效防止网页内容被轻易复制。
5303

被折叠的 条评论
为什么被折叠?



