这是IE的问题,这种方法不可行,我在IE5.0,6.0都试过

解决方案 »

  1.   

    <script>
    function window.onbeforeunload()
    {
    if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
    {  
                  window.event.returnValue="";
                  window.open('http://www.iconcool.com');
              }
    }
    </script>
      

  2.   

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

    if(confirm('Sure to quit?')!=1){
                怎样不要这个窗口关了,这段代码如何写了?
                     }
              }
    }
    </script>
    首先谢谢大家,我要代码改了一下,请指教,如果我点取消,怎样不要这个窗口关了,这段代码如何写了?
      

  3.   

    谢谢 jycjyc(jycjyc)  如何才能知道用户是点确定,还是取消了? jycjyc(jycjyc) 就
    window.event.returnValue="";请问对这段提示如何处理呢?
      

  4.   

    onunload="return Sure to quit?"