Page 10
The History Object
History contains the list of URLs that your browser has visited. Every browser has a way to call up a list of the pages you've visited recently. Clicking and holding down on your browsers back button generally does the trick. The History object lets you jump backward and forward in this list using the window.history.back()
and window.history.forward()
methods. The back link should act just like the back button on your browser.
These two methods are most useful inside frames, where the browser's back button tends to take you to unexpected pages. It also makes a good addition to our ever-growing Webmonkey browser, which (surprise, surprise) is part of today's homework. But first, let's review.