简单的说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);的话失效?希望得到帮助,谢谢
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);的话失效?希望得到帮助,谢谢
</body>
是onload,你寫錯了
A
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下失效