window.location.href = index.html
IE8里面正常,但是FF里面却时常无法跳转,请问怎么回事?如何解决?

解决方案 »

  1.   

    试试
    window.location.href = "index.html";
      

  2.   

    厄...我程序里面加了引号的
    window.location = "index.html"也试过,一样的问题
      

  3.   

    location.href = "index.html";直接这样子试试。
      

  4.   

    有没有在firebug里面设置中断了
      

  5.   

    今天我也遇到在FF下window.location.href不能跳转的问题了,发现原来是A链接的问题,A链接的点击事件无法跳转,直接把方法的调用放到A链接的href属性里就可以了