当前位置:编程学习 > C#/ASP.NET >>

后退,前进,刷新


如图所示,网页中的“后退”、“前进”、“刷新”之类的功能应该如何实现?

其思路和实例源码。 --------------------编程问答--------------------

//后退
window.history.go(-1);
//前进
window.history.go(1);
//刷新
window.location.href = window.location.href;
--------------------编程问答--------------------

<a href="javascript:history.go(-1);" ></a> 后退
 <a href="javascript:window.history.forward();" ></a>  前进
<a href="javascript:location.reload();";"></a> 刷新
--------------------编程问答-------------------- <input type="button onclick="javascript:window.history.go(-1);"value=" 后退">
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,