sergserg
sergserg

Reputation: 22254

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.

Upvotes: 8

Views: 39711

Answers (1)

Rory McCrossan
Rory McCrossan

Reputation: 337560

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');

Upvotes: 7

Related Questions