if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
{ende();}

解决方案 »

  1.   

    <script>
    function window.onbeforeunload(){
    if(event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
    return(confirm("你真的要退出吗"))
    }
    </script>
      

  2.   

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

  3.   

    <script language=javascript>
    function window.onbeforeunload()
    {
      if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
      {
        window.event.returnValue="确定要退出本页吗?";
      }
    }
    </script>
      

  4.   

    <script language=javascript>
    function window.onbeforeunload()
    {
        window.event.returnValue="";
    }
    </script>
      

  5.   

    我也想知道anytel(阿鸡)提出来的问题?
      

  6.   

    在框架网页里:
    <script language=javascript>
    function window.onbeforeunload()
    {
      if(event.clientX>360&&event.clientY<0||event.altKey)
      {
        window.event.returnValue="确定要退出本页吗?";
      }
    }
    </script>