ASP的登陆后的跳转问题 高分求解

来源:百度知道 编辑:UC知道 时间:2024/07/04 13:50:12
我想要在登陆成功的一个ASP中 跳转到 page_1.htm 这个页面该怎么写这个代码
在这个页面写跳转

<%
end if
response.Write("请记住你的用户名和密码!用户名:yoyo 密码:1234")
javascript:window.location.href='index.htm';
%>

</tr>

</table>

<body>
</body>
</html>

在javascript:window.location.href='index.htm'; 一行有错 ,在这儿怎么写这个跳转?在线等!可以加分

response.write ("<script language='javascript'>alert('请记住你的用户名和密码!用户名:yoyo 密码:1234');location='index.html';</script>")
Response.end

两种方法,请根据需要选择:

1. 隔一段时间自动跳转:

response.write("<script type='text/javascript'>setTimeout(function(){document.location='index.html'},5000);</script>")

2. 手动跳转:
response.write("<a href=\"javascript:document.location='index.html'; return false;\">跳转</a>")