How To Clear Browser Hash History In Javascript
I use hashchange plugin to imitate ajax navigation, i would like to create navigation throught folders, for example: #root/ -> #root/folder -> #root/folder/subfolder -> #
Solution 1:
Modern browsers with HTML5 support supports some manipulation via window.history
. According to the docs at Mozilla Developer Network, the only supported actions are to add and replace history.
Removing browser history is thus not supported, but maybe history.replaceState()
can be used to suit your needs.
Post a Comment for "How To Clear Browser Hash History In Javascript"