JavaScript: Navigate to a new URL without replacing the current page in the history (not window.location)
问题 I know how to use window.location. The problem is that, (at least in FF) it erases the page you are on from the history. e.g., I'm on page A, I navigate to B and window.location is used to send me to C. If on page C, I click back, I end up at A, not B. Is there some other way to navigate to another page without erasing the current page from the history? EDIT: This wont happen if you run the code in Firebug. Here is a super simple page (yes I know the code is ugly, it's not the real code) that