I use hashchange plugin to imitate ajax navigation, i would like to create navigation throught folders, for example:
#root/ -> #root/folder -> #root/folder/subfolder -> #root/
but when i go to last #root/ in list i would like to clear previous navigation history
#root/folder -> #root/folder/subfolder
Is any ability to do that?
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.