简体   繁体   中英

Manipulate the session history with JavaScript

出于这个原因 ,我需要删除最新的浏览器历史记录条目,但是也欢迎JS公开的用于处理(添加/删除)当前页面/标签的历史记录条目的任何其他功能。

I highly doubt that there is a way. The window.history object provides read-only access to the browsing history for security reasons.

您可以在IFrame上使用location.replace吗?

使用javascript无法做到这一点(在正常参数范围内,您可以尝试利用浏览器的bug等,但我怀疑这是这里的想法)

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