简单的说a.html和b.html,a转b,b在返回a后,在firefox浏览器下点击上一部按钮,b中的js不起作用,比如onload,
A
a.html <a href="c.html" >进入c</a>B<body onlaod="javascript:alert('1');"> b.html<A  HREF="a.html"> 返回a</a> 
        
</body>还有window.histroy.go();在firefox使用没有问题,但在window.histroy.go(5);windos.histroy(history.length);的话失效?希望得到帮助,谢谢

解决方案 »

  1.   

    <body onlaod="javascript:alert('1');">b.html <A  HREF="a.html"> 返回a </a>
           
    </body> 
    是onload,你寫錯了
      

  2.   

    不好意思,是我打错了! 在firefox下一样失效
      

  3.   

    可能我说的不是很清楚

    a.html <a href="c.html" >进入c </a> B
    <body onload="javascript:alert('1');"> b.html <A  HREF="a.html"> 返回a </a> 
            
    </body> 
     
    进入A跳转到B,从B 按返回a后,在IE下点击上一部按钮跳回到B,此时会调用Onload,但在firefox下onload是失效的.
    还有就是window.histroy.go(5);window.histroy(history.length);的话在firefox下失效