js页面刷新、前进、后退

1、使用按钮

<input type=button value=刷新 onclick="window.location.reload()"> 
<input type=button value=前进 onclick="window.history.go(1)"> 
<input type=button value=后退 onclick="window.history.go(-1)"> 
<input type=button value=前进 onclick="window.history.forward()"> 

2、使用URL

<a href="JavaScript:window.location.reload()">刷新</a>
<a href="JavaScript:history.Go(-1)">后退</a>
<a href="JavaScript:history.Go(1)">前进</a> 
<a href="JavaScript:history.forward()">前进</a>

 

  

 

posted @ 2016-11-24 20:54  .追风逐月  阅读(1298)  评论(0编辑  收藏  举报