如何使用链接或者按钮提供“回退”这样的操作?

好多网站都有的
相当于浏览器的“回退”功能
谢谢
---------------------------------------------------------------

use the script like this:

1<input onclick="history.back()" type="button" value="Back"/>
1<input onclick="history.go(-1)" type="button" value="Back"/>

---------------------------------------------------------------

1<a href="" onclick="history.go(-1);return false">back</a>
1<a href="" onclick="history.go(1);return false">go</a>

---------------------------------------------------------------

1<input name="back" onclick="vbscript:window.history.go(-1)" type="button" value="back"/>

1<a href="vbscript:window.history.go(-1)">back</a>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus