HTML前进后退功能
- <html>
- <body>
- <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()">
- <input type=button value=后退 onclick="window.history.back()">
- </body>
- </html>