<script type="text/javascript">
  //Method one
  //<![CDATA[
  //document.oncontextmenu=new Function('event.returnValue=false;');
  document.oncontextmenu = function (e) { e = e || window.event; e.returnValue = false; }
  document.onselectstart = new Function('event.returnValue=false;');
  //]]>
 </script>
<!--Method two-->
<body oncontextmenu="return false" onselectstart="return false"></body>

posted on 2021-01-07 17:28  dinoy  阅读(151)  评论(0编辑  收藏  举报