JS idź do historii

history.go([delta])
delta Optional
The position in the history to which you want to move, relative to the current page. A negative value moves backwards, a positive value moves forwards
Prickly Polecat