August 1999
Intermediate to advanced
1488 pages
72h 53m
English
history.back()
The back() method of the History object is used to load the URL for the previously visited Web site.
Listing 7.294 shows an example of how a JavaScript button can use the back() method to simulate the browser's back functionality.
<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> |
Read now
Unlock full access