That code will usually have the same behavior as the browser back button. However, it doesn’t always go back to exactly the same place the browser back goes. Shouldn’t it have the exact same behavior as the browser back?
I assume the page history is tracked automatically and no additional code is needed.
My code is definitely not minimal. I’ve also noticed that just like the History API code, the JavaScript that’s supposed to achieve the same result as the browser back doesn’t always go back to where the back button goes. Is the History API call just a wrapper for the JavaScript?
Brian Sheely:
My code is definitely not minimal. I’ve also noticed that just like the History API code, the JavaScript that’s supposed to achieve the same result as the browser back doesn’t always go back to where the back button goes. Is the History API call just a wrapper for the JavaScript?