如何使用JavaScript清除浏览历史记录? [英] How to clear browsing history using JavaScript?

查看:826
本文介绍了如何使用JavaScript清除浏览历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个简单的项目,让我们采取高度安全的网站。我有5个不同的JSP页面。如果我从第一个JSP页面开始,它将重定向到第二个JSP页面,依此类推。同时,它不应该在我的浏览器历史记录中存储这些页面。
如何使用JavaScript清除这些浏览历史记录?

I am doing a simple project, let us take high secure website. I have 5 different JSP pages. If I started from first JSP page, it is redirecting to second JSP page and so on. In the meanwhile, it should not store those pages in my browser history. How to clear those browsing history using JavaScript?

推荐答案

如果没有插件,则无法清除用户历史记录。而且从开发人员的角度来看也不是问题,清除历史记录是用户的负担。

It's not possible to clear user history without plugins. And also it's not an issue at developer's perspective, it's the burden of the user to clear his history.

有关信息,请参阅如何使用JavaScript清除浏览器(IE,Firefox,Opera,Chrome)的历史记录或者除了浏览器本身以外的Java?

这篇关于如何使用JavaScript清除浏览历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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