Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear back button history using Javascript?

Using javascript (I'm using jQuery if that simplifies things), how can I clear the back button history?

I do not mean the entire browser history.

I mean the history in the tab back button.

like image 443
sergserg Avatar asked Nov 15 '13 14:11

sergserg


1 Answers

You cannot remove the entire back button history. All you can do is replace the last entry with the next page, using window.location.replace('url');

like image 193
Rory McCrossan Avatar answered Sep 26 '22 08:09

Rory McCrossan