代码错了应是:
<script language="JavaScript">
<!--
 
if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 
 
function nocontextmenu() 
{
 event.cancelBubble = true
 event.returnValue = false;
 
 return false;
}
 
function norightclick(e) 
{
 if (window.Event) 
 {
  if (e.which == 2 || e.which == 3)
   return false;
 }
 else
  if (event.button == 2 || event.button == 3)
  {
   event.cancelBubble = true
   event.returnValue = false;
   return false;
  }
 
}
 
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others
//-->
</script>
</BODY>

解决方案 »

  1.   

    真正绝对的右键禁止
    <!-- Saved From url=http://js.jojoo.net -->
    <!-- Web Design bbs url=http://www.qybbs.net--><script language="JavaScript">
    <!--
     
    if (window.Event) 
      document.captureEvents(Event.MOUSEUP); 
     
    function nocontextmenu() 
    {
     event.cancelBubble = true
     event.returnValue = false;
     
     return false;
    }
     
    function norightclick(e) 
    {
     if (window.Event) 
     {
      if (e.which == 2 || e.which == 3)
       return false;
     }
     else
      if (event.button == 2 || event.button == 3)
      {
       event.cancelBubble = true
       event.returnValue = false;
       return false;
      }
     
    }
     
    document.oncontextmenu = nocontextmenu;  // for IE5+
    document.onmousedown = norightclick;  // for all others
    //-->
    </script>
      

  2.   

    document.oncontextmenu = "return false";
      

  3.   

    禁止右键  只要在body中加一句oncontextmenu="return false" 就可以了去掉菜单栏 则需要该页是用open方式打开的才行 在open参数中设置如:
    pop=window.open("pop.html","弹出窗口","toolbar=no,menubar=no,scrollbars=no,directories=no,resizable=no,location=no,status=no,top=0,left=0,width=320,height=220");
    每个参数代表不同意思 看英文就明白大概了,没有菜单就不能保存了(嘻嘻)最后还有禁止掉快捷键才行  ctrl+c ...
      

  4.   

    最后还有禁止掉快捷键才行  ctrl+n