如何在用javascript:history.back();返回后自动刷新返回后的页面?谢谢!

很多人都问过这个问题,但是答案很不理想,大家再来讨论讨论吧
---------------------------------------------------------------

window.location.reload();
---------------------------------------------------------------

1<input name="ha" style="display:none" type="text"/>
1<input/>

这是测试用的,没有硬刷新其内容是不会改变的

1<br/>
1<a href="x_2.htm">连接到其他页面,以便点击返回</a>
1<script defer="true">   
2if(document.all.ha.value == 1) {   
3location.reload();   
4}   
5document.all.ha.value = 1   
6</script>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus