Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 893
Praveen Prasad Avatar asked Mar 31 '10 18:03

Praveen Prasad


1 Answers

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 );
like image 102
Peter Bailey Avatar answered Oct 28 '22 10:10

Peter Bailey