那位大哥帮偶修改下这个ASP语句

来源:百度知道 编辑:UC知道 时间:2024/05/23 20:47:35
<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
'conn.execute ("delete from orders where o_username='"&session("user_name")&"' and o_state=0")清空购物车
session.Abandon()
session("user_name")=""
response.write("<script language='javascript'>alert('欢迎您下次登陆!');history.go(-1);location.reload();</script>")
conn.close
set conn=nothing
%>
现在的问题是..
他跳不出弹出框
弹出框怎么也点不完
对不起啊...
大哥好像有出问题了....
他现在又不能注销了...

response.write("<script language='javascript'>alert('欢迎您下次登陆!');history.go(-1);</script>")

去掉location.reload();就可以了

如果你直接打开浏览器进入界面,那他没有上一级网页。history.go(-1)不执行,直接执行location.reload()。对当前页面进行重新调用。
哎楼上的手真快,打开的时候还是零回答,提交的时候就慢了。
------------
location.reload()把这个去掉就能跳出弹出框了。