<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<script language="javascript" type="text/javascript">
function closepage()
{
window.open("ad.jsp");
}
</script><title>index.gif</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head><body onunload="closepage()">
这个是我的主页的代码 我想在用户关闭页面后打开 AD.JSP 然后在AD。JSP里销毁SESSION 怎么做到? 现在这个AD。JSP老是打不开 很郁闷;请高手帮忙!
<html>
<head>
<script language="javascript" type="text/javascript">
function closepage()
{
window.open("ad.jsp");
}
</script><title>index.gif</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head><body onunload="closepage()">
这个是我的主页的代码 我想在用户关闭页面后打开 AD.JSP 然后在AD。JSP里销毁SESSION 怎么做到? 现在这个AD。JSP老是打不开 很郁闷;请高手帮忙!
解决方案 »
- 在ie中 布局是乱的
- struts ognl的问题
- js href如何传值,传值后在新的页面如何获取啊
- jsp中文乱码问题?
- tomcat
- The value for the useBean class attribute dbconn.DBconnManager is invalid.
- 关于毕业设计的困惑,请有经验的朋友指点一下(50)
- ASP问题,asp出现故障,只有在这里发了。 初学者的问题!~!~<
- java前端和后端哪个更有发展
- 为什么jsp跑得这么慢,有没有优化方法
- 100分求select三联级动态下拉代码
- Windows平台,装了MyEclipse_5.1.1GA_FullStackInstaller.exe,还用装eclipse3.2吗?
试试
onunload的用法是没有任何问题的.
我测试过了.
window.top.close();
window.open("ad.jsp", "_blank");