asp注册后问题

来源:百度知道 编辑:UC知道 时间:2024/07/07 00:42:29
怎么让注册后,提示1 返回刚刚浏览的界面(刚刚浏览的是论坛的某一个带id传送的)2返回主页

我是用VBSCRIPT 写的。你可以改为js的

if confirm("返回刚刚浏览的界面请按确定,返回主页请按取消")=yes then
history.back
else
location.href=主页的网址
end if

希望对你有帮助

response.Redirect Request.ServerVariables("HTTP_REFERER")
自己返回上一页.不知道楼主是不是要这种效果?
如果上一页不存在的话就需要判断下了
If Request.ServerVariables("HTTP_REFERER")<>"" Then
tmpstr=Request.ServerVariables("HTTP_REFERER")
Comeurl=tmpstr
Else
Comeurl="index.htm"
End If
response.Redirect(Comeurl)%
上一页不存在就返回index.htm,如果存在就返回上一页