<script>
function pagebackward()
{
window.history.back();
}
function pageforward()
{
window.history.forward();
}
</script>
<input type=button value=前进 on<wbr>click="pageforward()"> <br> <input type=button value=后退 on<wbr>click="pagebackward()"> </wbr></wbr>
事物history
history给你的访问者一个前进或后退可能。句法如下:
<a href="javas<wbr>cript:history.back()">back</a> <br> <a href="javas<wbr>cript:history.forward()">forward</a> <br> 用按钮控制一样直接调用js方法就ok了。</wbr></wbr>