Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 207
chaonextdoor Avatar asked Sep 25 '13 02:09

chaonextdoor


1 Answers

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

like image 111
user1934853 Avatar answered Nov 12 '22 06:11

user1934853