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

ASP
ASP之对象总结
浅析ASP内置组件
初看ASP-针对初学者
解析asp的脚本语言
学习使用ASP对象和组件
在ASP中使用数据库
初学者必读 ASP运行环境的搭建
ASP进阶学习必经之认识数学函数11种
NET移植案例学习:建造Web站点(3)
NET移植案例学习:建造Web站点(4)
NET移植案例学习:建造Web站点(5)
NET移植案例学习:建造Web站点(6)
NET移植案例学习:建造Web站点(7)
ASP.NET中的Code Behind技术(1)
ASP.NET中的Code Behind技术(2)
ASP.NET中的Code Behind技术(3)
ASP.NET中的Code Behind技术(4)
动手写个小组件(组件入门)_asp
ASP应用中心得回放
怎么学习asp 给非专业的asp爱好者

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 134 ::
收藏到网摘: 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.