当前位置: 首页 > 图文教程 > 网络编程 > ASP > 清除浏览器历史记录代码

ASP
ASP中用Join和Array,可以加快字符连接速度。
采用ODBC接口访问MySQL指南
最大限度优化你的Asp性能
实现让每句话的头一个字母都大写
如何尽快释放掉Connection对象建立的连接?
把数据插入到数据库的两种方法
Connection对象的应用
查看ASP Session 变量的小工具
用XMLHTTP组件正确解析图片地址并将其保存
利用XMLHTTP 从其他页面获取数据
Request与Request.Form的速度测试
用SOAP和ASP进行服务器端更新
ASP开发网页时需要牢记的注意事项列表
面向对象的ASP技术:思考与实践
提供一种“间接防止另存为”的方法
格式化数字函数FormatNumber
怎么样写一段高效,安全的sql查询代码
关于Adodb.Stream的使用说明
不用EOF以加快记录循环
防止重复提交的巧妙方法

ASP 中的 清除浏览器历史记录代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 77 ::
收藏到网摘: n/a

  Code to clear browser history

/* This logout.asp is used to clear the back pages of the browser,
/* if the user has logged out.
/* if there are no specific vbscripting to be done then you can
/* use this file as logout.htm

<%
/* Clear all your sessions over here and do other
/* desired things
%>

<SCRIPT LANGUAGE=javascript>
{
var Backlen=history.length;
history.go(-Backlen);
top.window.location.href ="../esadmin/administer.asp";
}
</SCRIPT>


/* here the "../esadmin/administer.asp" page is the
/* desired page to be displayed after the user logs out

To use the code above, click and drag your mouse over the code to highlight it.   Then right click on the
highlighted code and click "Copy."   Now you may paste it into your code editor.