window.location.history(-1) code example
Example: js go to see history
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