如何使用JavaScript清除浏览器历史记录 [英] How to Clear the Browser History using JavaScript

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

问题描述

大家好,

我只想使用Javascript清除浏览器的历史记录...任何
欢迎您提出建议,换句话说,就是要禁用浏览器的后退"按钮..

Hi All,

I just want to Clear the History of the Browser using the Javascript...any
suggestion please welcome,in other words just want to disable the Back button of the browser..

推荐答案



Hi

{
   var Backlen=history.length;   history.go(-Backlen); 

  window.location.href=page url
 
 }





例如

http://forums.asp.net/t/1132444.aspx/1

http://stackoverflow. com/questions/2190808/how-to-clear-browsers-ie-firefox-opera-chrome-history-using-javascript-or-j

http://www.dynamicdrive.com/forums/archive/index.php/t- 5284.html


thanx





For Example

http://forums.asp.net/t/1132444.aspx/1

http://stackoverflow.com/questions/2190808/how-to-clear-browsers-ie-firefox-opera-chrome-history-using-javascript-or-j

http://www.dynamicdrive.com/forums/archive/index.php/t-5284.html


thanx


请参阅
http://aspdotnetcodebook.blogspot.com/2008/07/how-to-clear-browser-session-in-aspnet.html [
Refer this
http://aspdotnetcodebook.blogspot.com/2008/07/how-to-clear-browser-session-in-aspnet.html[^]


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

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