removing history points from browser

左心房为你撑大大i 提交于 2019-12-03 15:52:21

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!