Mega Code Archive

 
Categories / JavaScript Tutorial / Window
 

Window back()

The back() method simulates the user clicking the Back button on the browser. It returns the browser's page or frame to the previous page or frame. <html>     <body>     <form>       <input type=BUTTON value="Back" onClick="window.back()">       <input type=BUTTON value="Forward" onClick="window.forward()">     </form>     </body>     </html>