Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html >
- <head>
- <meta charset="utf-8">
- <title>History</title>
- </head>
- <body>
- <a href="#newState"> New State</a>
- <h1 onClick="javascript:goBack()"> Go backward</h1>
- <h1 onClick="javascript:goForward()"> Go forward</h1>
- <script>
- function goBack() {
- window.history.go(-1);
- }
- function goForward() {
- window.history.go(1);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement