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