禁止網頁內容被復制的javascript代碼,這段代碼可以有效的防止網頁中的內容被復制,使用起來也比較簡單,收藏備用!
<script language=javascript>
document.onselectstart=function() {return false;}
document.oncopy=function() {return false;}
</script>
<body oncontextmenu=window.event.returnValue=false onselectstart="return false" >
<script language=javascript>
document.onselectstart=function() {return false;}
document.oncopy=function() {return false;}
</script>
<body oncontextmenu=window.event.returnValue=false onselectstart="return false" >