JS – BOM – History Back Forward
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <html> <head> <script> function goBack() { window.history.back() } function goForward() { window.history.forward() } </script> </head> <body> <input type= "button" value= "Back" onclick= "goBack()" > <input type= "button" value= "Forward" onclick= "goForward()" > </body> </html> |