JS – BOM – History Back Forward
<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>