我也不知道如何根据event.returnValue的返回值来进行判断,而且firefox好像真的有这问题,学习下。

解决方案 »

  1.   

    location=="http://127.0.0.1:8080/tess03/fmus08/actfwfmus080101-0.do"; 
      

  2.   

    location="http://127.0.0.1:8080/tess03/fmus08/actfwfmus080101-0.do"; 
    多了一个等号
      

  3.   

    你的代码在ie下也无法运行啊...建议改为window.open,我想是在改变location.href的同时又触发了onbeforeunload事件
    window.onbeforeunload =function(e)

    e=e||window.event;   
    e.returnValue='确定离开'; 

                  
    window.onunload =  function()

    window.open("http://127.0.0.1:8080/tess03/fmus08/actfwfmus080101-0.do");//=====================
    self.close(); //=====================
      

  4.   

    self.location=="http://127.0.0.1:8080/tess03/fmus08/actfwfmus080101-0.do"; 
      

  5.   

    每次都多一个等号,我笨死
    self.location="http://127.0.0.1:8080/tess03/fmus08/actfwfmus080101-0.do";