Updating an iframe, history and URL. Then making it work with back button
问题 I'm having problems getting URL to update when hitting the back button on the browser (I'm on testing on Firefox). After updating the "src" property of the iframe I use replaceState to update the history. If I hit the back button after this the iframe will go back to the previous page but the URL does not update to reflect this. function updateURLBar(urlInfo) { var stateObj = { foo: "bar" }; document.getElementById("iframeContent").src = urlInfo[1]; window.history.replaceState(stateObj, "page