<script type="text/javascript"> document.body.οncοntextmenu=function(){ alert (1);return false;}; document.body.οndragstart=function(){alert(2);return false;}; document.body.onselectstart=function(){alert(3);return false;}; document.body.onbeforecopy=function(){alert(4);return false;}; document.body.οnselect=function(){alert(5);document.selection.empty();}; document.body.οncοpy=function(){alert(6);document.selection.empty();}; document.body.οnmοuseup=function(){alert(7);document.selection.empty();}; </script>
使用方式,直接放入页面js处,并去掉alert()方法。