JavaScript
JavaScript Window History
在页面上创建一个向前的按钮
源代码:
点击运行 »
<html> <head> <script> function goForward() { window.history.forward() } </script> </head> <body> <input type="button" value="Forward" onclick="goForward()"> </body> </html> function goForward() { window.history.forward() }
运行结果:
点击运行 »