<script>
   function sss()
   {
    if (event.buttton=2)
    {
      window.open()
    } 
   }
</script>
<body onclick=sss()>

解决方案 »

  1.   

    <script>
    function win_open()
    {
       window.open();
       return false;
    }
    </script>
    <body oncontextmenu="win_open()">
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="JavaScript">
    function test()
    {
    window.open("http://www.csdn.net");
    return false;
    }
    </script>
    </head><body oncontextmenu='return test();'></body>
    </html>
      

  3.   

    oncontextmenu一定要return false,要不然IE的采单就出来了