Using the Browser History to Go Forward and Backward Pages
To go forward one page, use history.forward(). To go backward one page, use history.back().
To go forward or backward multiple pages, use history.go(n), where n is the number of pages. A negative number goes backward that many pages, and a positive number goes forward that many pages.