window.history.go(-2); this code work all browser or not code example
Example 1: js go back
history.back()
Example 2: 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