禁止網(wǎng)頁內(nèi)容被復制的javascript代碼,這段代碼可以有效的防止網(wǎng)頁中的內(nèi)容被復制,使用起來也比較簡單,收藏備用!
<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" >