Answer
pushState function lets you push data into the history object. The first argument is an object that contains your data, the second argument is the title that reference that data, and the url argument lets you associate the data with a particular page so it’ll be popped when that page is reloaded.
Answer
A general purpose function window.history.go[delta] will let you move backward by the value -4 for delta.