简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM