I want to add some items in history using javascript? Is there any way to do it?
Thanks in Advance !
Uday
I want to add some items in history using javascript? Is there any way to do it?
Thanks in Advance !
Uday
I believe what you are looking for is:
history.pushState( stateObj, title, url );
And definitely read: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history
History states definitely still have limitations in terms of cross-browser compatibility, so if you are looking to solve for old versions of IE, etc... you may need to just update the #hashmark on the url.