一个问题,高分求解!

armstrong005 2006-04-24 06:53:38
我想在系统的各页面中跳转,可是不知道JAVASCRIPT的跳转函数是什么?
点"返回"后,跳转到go2.asp页面中
<script LANGUAGE="javascript">

function ReLogin()
{?????????("../go2.asp");}/*就是这里,不知函数是么事呀???*/

</script>

<html>
<head>
<title>修改密码成功!</title>
</head>
<%
temp1=session("userid")
password=request.form("password1")
dim myconn
dim myrs
dim my

set myconn=Server.CreateObject("ADODB.Connection")
set myrs=Server.CreateObject("ADODB.recordset")
myconn.open "driver={SQL

server};server=192.168.1.28;uid=sa;pwd=;database=idandpassword"
application.lock
my="update table1 set password='"&password&"' where id='"&temp1&"'"
myconn.execute(my)


application.unlock
myconn.close
%>

<center>
<p><font size="7"><b><font face="华文行楷">密码修改成功!</font></b></font></p>
</center>

<p><center>
<input type="button" name=btnlogin value="返回" onclick='ReLogin()'>
</p>
</html>
谁可以帮我详细说一些呀?
...全文
137 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hedingsheng 2006-04-24
  • 打赏
  • 举报
回复
mark
www_7di_net 2006-04-24
  • 打赏
  • 举报
回复
'//出错跳转函数
Sub strErr(url,message)
mess=trim(message)
url=trim(url)
if url<>"" then
urla=url
else
urla="javascript:history.back(1)"
end if
Response.write "<script>alert('"&mess&"\n\n—— "&CompanyName&" ');</script>"
Response.write "<script>window.location.href='"&urla&"';</script>"
response.end
End sub
用法
当出错的时候
call srterr("index.asp","对不起,出现了某某错误!")
mhxz568 2006-04-24
  • 打赏
  • 举报
回复
onclick="location.href='tiaozhuan.asp';"

tiaozhuan.asp
<%
response.redirect"go2.asp"
%>
mhxz568 2006-04-24
  • 打赏
  • 举报
回复
一定要用JAVASCRIPT吗?

如果用ASP跳转就轻松了

response.redirect或server.transfer

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧