HTML前进后退功能

  1. <html>  
  2. <body>  
  3. <input type=button value=刷新 onclick="window.location.reload()">  
  4. <input type=button value=前进 onclick="window.history.go(1)">  
  5. <input type=button value=后退 onclick="window.history.go(-1)">  
  6. <input type=button value=前进 onclick="window.history.forward()">  
  7. <input type=button value=后退 onclick="window.history.back()">  
  8. </body>  
  9. </html

 

posted @ 2015-06-18 10:00  豆瓣匠  阅读(513)  评论(0编辑  收藏  举报