I either dreamt about chrome (dev channel) implementing a way to update the address bar via javascript (the path, not domain) without reloading the page or they really have done this...
However...I can't find the article I think I read.
Am I crazy or is there a way to do this [in chrome]?
p.s. I'm not talking about window.location.hash (et al)...basically if the above exists the answer to this question will be untrue.
Source: Tips4all, CCNA FINAL EXAM
Found it!
ReplyDeleteRead all about it here: http://www.spoiledmilk.dk/blog/?p=1922. For a more in-depth look into pushState/replaceState/popstate go here (https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history).
and the code:
window.history.pushState("object or string", "Title", "/new-url");
See my answer to this question for more info.