(在线等待)怎么在新窗体中打开一个新页,然后再REDIRECT到另一个页面?

比如我现在有一个页:login.htm,其中是登陆的,目标页面是Check.asp,如果检测到用户名、用户密码不符合,就用

1<script language="javascript">window.open("PopUpWindow.Asp?USER_ERROR","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=300,height=200,top=0,left=0")</script>

打开一个小窗,显示用户名出错。主页面再重新定位到LOGIN.HTM如何做?
我现在用response.write上面的脚本之后,再用Response.redirect就根本不会显示小窗,直接跳转到LOGIN.HTM上了!
望高手指教!
---------------------------------------------------------------

response.write "

1<script>location.href='login.htm'</script>

"
---------------------------------------------------------------

你输出成下面的代码就可以.

1<script language="javascript">   
2window.open("PopUpWindow.Asp?USER_ERROR","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=300,height=200,top=0,left=0")   
3window.location="login.htm"   
4</script>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus