<body onUnload="window.open('new.htm','','width=400,height=400');">

解决方案 »

  1.   

    <script language=javascript>
    function window.onbeforeunload()
    {
      if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
      {
        window.open();
      }
    }
    </script>
      

  2.   

    <script language=javascript>
    window.onbeforeunload = function()
    {
      if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
      {
        window.open('../Default.aspx','','width=464,height=181');
        window.close();
      }
    }
    </script>
      

  3.   

    <script language=javascript>
    window.onbeforeunload = function()
    {
      if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
      {
        window.open('new.htm','','width=400,height=400');
      }
    }
    </script>