1、禁止右键菜单
<script type="text/javascrpt" language="javascript">//方法一function noMenuOne(){alert('禁止右键菜单!');return false;}document.oncontextmenu = noMenuOne;function noMenuTwo(){if(event.button == 2){alert('禁止右键菜单!');return false;}}document.onmousedown = noMenuTwo;</script>
2、禁止复制(Ctrl+C)
<script type="text/javascript" language="javascript">function noCopy(){alert("禁止使用Ctrl+C进行复制操作!");event.returnValue = false;}</script><body oncopy = "noCopy()">
3、禁止另存为
<noscript><iframe src='*.htm'></iframe></noscript>
4、禁止缓存
在页面中使用如下HTML标记:
<HEAD><META http-equiv=Pragma content=no-cache><META http-equiv=Cache-Control content=no-cache><META http-equiv=Expires content=0></HEAD>