Praveen Prasad
Praveen Prasad

Reputation: 32137

removing history points from browser

can we remove history points created in web browser.

or is it possible not add history point when a sample link "some link" is clicked and url in browser changed

Upvotes: 5

Views: 3898

Answers (2)

Peter Bailey
Peter Bailey

Reputation: 105914

You cannot remove items from the browser history, but you can load a new document into the window and bypass the history with javascript. This is done with the replace() method of location objects

top.location.replace( newUrl );

Upvotes: 10

kgiannakakis
kgiannakakis

Reputation: 104196

Browser's history belongs to the user, not to your application (client or serverside). There is no way to access it through javascript and this is a very good thing.

Upvotes: 4

Related Questions