帮我看看我的asp有什么问题!

来源:百度知道 编辑:UC知道 时间:2024/05/11 16:02:26
<script LANGUAGE="javascript">
alert("用户名或密码错误请重新输入!");
</script>
<%response.redirect"../index.asp"%>
看看我这段代码应该怎么写,没等我点确定呢,就直接跳转了!

这样太麻烦,直接用js控制跳转

<script LANGUAGE="javascript">alert("用户名或密码错误请重新输入!"); window.location='1.asp';</script>
如果想直接返回,就用:
<script LANGUAGE="javascript">alert("用户名或密码错误请重新输入!"); history.go(-1);</script>