chaonextdoor
chaonextdoor

Reputation: 5129

How to delete history entries added through history.pushstate?

I want to totally remove some history entries added via history.pushState instead of using history.replaceState to modify them. How should I achieve this?

Upvotes: 6

Views: 3875

Answers (1)

user1934853
user1934853

Reputation: 337

Editing previous history entries is not possible. From the history documentation:

All the getters and setters for attributes, and all the methods, defined on the History interface, when invoked on a History object associated with a Document that is not fully active, must throw a SecurityError exception

http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#the-history-interface

Upvotes: 1

Related Questions