禁止网页 切屏 切换标签

防止被Print Screen 

<script language="javascript"> 
<!-- 
//www.fhadmin.org
function testclip(){ 
try { 
   if(clipboardData.getData("Text")||clipboardData.getData("HTML")||clipboardData.getData("URL")) 
    { 
    null; 
    } 
   } 
catch(e){ 
   clipboardData.setData("Text","") 
   } 
setTimeout("testclip()",500) 
} 
testclip(); 
//--> 
</script>


以上代码都加在</head>前面  


猜你喜欢

转载自blog.51cto.com/14622073/2678938
今日推荐