265
185
|
Is there any way I can modify the URL of the current page without reloading the page?
I would like to access the portion before the # hash if possible.
I only need to change the portion after the domain, so its not like I'm violating cross-domain policies.
| ||||||||||||||
|
391
|
This can now be done in Chrome, Safari, FF4+, and IE10pp4+!
See this question's answer for more info: Updating address bar with new URL without hash or reloading the page
Example:
You can then use
window.onpopstate to detect the back/forward button navigation:
For a more in-depth look at manipulating browser history see this MDN article.
| ||||||||||||||||||||
|