后退,前进,刷新
如图所示,网页中的“后退”、“前进”、“刷新”之类的功能应该如何实现?
其思路和实例源码。 --------------------编程问答--------------------
--------------------编程问答--------------------
//后退
window.history.go(-1);
//前进
window.history.go(1);
//刷新
window.location.href = window.location.href;
--------------------编程问答-------------------- <input type="button onclick="javascript:window.history.go(-1);"value=" 后退">
<a href="javascript:history.go(-1);" ></a> 后退
<a href="javascript:window.history.forward();" ></a> 前进
<a href="javascript:location.reload();";"></a> 刷新
补充:.NET技术 , ASP.NET