This article for you to introduce the prohibition of the screen, through the removal of the Clipboard to achieve, prohibit copying, the right menu, prohibit the Web page save as, and so on, interested friends can refer to ha, I hope to help you
copy code as follows:
<style> @media print{body{display:none}}</style>
<%--prohibit screen, by clearing the Clipboard to achieve start--%>
<script type= "Text/javascript" >
function Clearshearplate () {
try {
if (Clipboarddata.getdata ("Text") | | clipboarddata.getdata ("HTML") | | clipboarddata.getdata ("URL")) {
Null
Clipboarddata.setdata ("Text", "");
}
}
catch (e) {
Clipboarddata.setdata ("Text", "")
}
SetTimeout ("Clearshearplate ()", 500)
}
Clearshearplate ();
</script>
<%--prohibit screen, by clearing the Clipboard to achieve end--%>
<%--prohibit copying the right key menu--%>
<body oncopy= "return false;" oncontextmenu= "return false" >
<%--prohibit Web page Save as Start--%>
<noscript><iframe src=*.html></iframe></noscript>
<%--prohibit Web page Save as End--%>