ASP 关闭页面事件

来源:百度知道 编辑:UC知道 时间:2024/05/25 07:12:30
一个页面在点击右上角的关闭按钮时打开另一个页面,应该如何实现?
如果用onUnload的话无论是关闭还是刷新都会打开该页面,如何才能只在关闭时打开,刷新时不打开?
ASP中点击右上角关闭按钮时触发的是哪个事件?

<%
Dim SplitReflashPage
Dim DoReflashPage
dim shuaxin_time
DoReflashPage=true
shuaxin_time=10
ReflashTime=Now()
if (not isnull(session("ReflashTime"))) and cint(shuaxin_time)>0 and DoReflashPage then
if DateDiff("s",session("ReflashTime"),Now())<cint(shuaxin_time) then
response.write "<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=3>本页面起用了防刷新机制,请不要在<b><font color=ff0000>"&shuaxin_time&"</font></b>秒内连续刷新本页面<BR>正在打开页面,请稍候……"
response.end
else
session("ReflashTime")=Now()
end if
elseif isnull(session("ReflashTime")) and cint(shuaxin_time)>0 and DoReflashPage then
Session("ReflashTime")=Now()
end if
randomize timer
regjm=int(rnd*8998)+1000
%>

js问题
'test.html
-----------