Mega Code Archive

 
Categories / JavaScript Tutorial / History
 

History back()

The back() method is used to load the URL for the previously visited Web site. <html>     <head>     <title> Using the back method of the History object</title>     </head>     <body>     <form name=form1>     Click on the button to go back to the previous page.     <input type="button" value="Go Back" onClick='window.history.back()'>     </form>     </body>     </html>