To load the next URL in the history list, use the history.back() method in JavaScript.
Example
You can try to run the following code to load next URL −
<!DOCTYPE html> <html> <body> <script> function backPage() { window.history.back() } </script> <input type = "button" value = "Previous URL" onclick = "backPage()"> </body> </html>