How to clear button history using javascript?

Using javascript (I use jQuery if it simplifies), how can I clear the history of buttons?

I am not making the entire browser history.

I mean the story in the back tab.

+4
source share
2 answers

You cannot delete the entire history of buttons back. All you can do is replace the last entry with the next page usingwindow.location.replace('url');

+3
source

https://gist.github.com/921920

jQuery('div').live('pagehide', function(event, ui){
  var page = jQuery(event.target);    
  if(page.attr('data-cache') == 'never'){
    page.remove();
  };
});
-1
source

All Articles