Adding a Javascript Navigation using the History
11/28/1999 12:00:00 AM
Tutorial on using the Javascript History method for navigation.
If your Web site contains a series of documents, you can use JavaScript to create BACK and FORWARD buttons for easy navigation. To create such navigational buttons, use JavaScript's History object, like this:
<html> <body> <form> <input type="button" value="<< Back" onClick="history.back();"> <br> <input type="button" value="Forward >>" onClick="history.forward();"> </form> </body> </html>
You could also use a text based link or image to accomplish the same thing:
<a href="#" onClick="history.back();">Go Back</a> <br> <a href="#" onClick="history.forward();">Go Forward</a>
|