从浏览器中删除历史点 [英] removing history points from browser

查看:174
本文介绍了从浏览器中删除历史点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以删除的网页浏览器创造了历史点。

can we remove history points created in web browser.

,或是否有可能不加点的历史当样品链接一些链接
点击和URL在浏览器中修改

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

推荐答案

您无法从浏览器历史记录中删除项目,但你可以加载一个新文档到窗口的旁路的使用JavaScript的历史。这是通过替换()位置对象的方法

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

这篇关于从浏览器中删除历史点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆