history.forward(); //forward 1 page history.back(); //backward 1 page history.go(-2); //backward 2 pages
To go forward one page, use
history.forward(). To go backward one page, use
To go forward or backward multiple pages, use
n is the number of pages. A negative number goes backward ...