<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>
<script type="text/javascript" language="javascript"> function noCopy() { alert("禁止使用Ctrl+C进行复制操作!"); event.returnValue = false; } </script> //<body oncopy = "noCopy()">
<HEAD> <META http-equiv=Pragma content=no-cache> <META http-equiv=Cache-Control content=no-cache> <META http-equiv=Expires content=0> </HEAD>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛