日期:2014-05-17  浏览次数:20907 次

页面跳转问题 在有的电脑上能跳转,但有的上却不能!
代码如下:
if   request( "RadioGroup1 ")= "支付宝 "   then
set   rs=server.createobject( "adodb.recordset ")
cpid=request( "id ")
sql= "select   dz   from   product   where   id= "&   cpid   & " "
rs.open   sql,conn,1,1
DZ=rs( "dz ")
response.Write   DZ  
rs.close
Response.write( " <script> window.close   ( 'wsdg_yd.asp ', ' '); </script> ")
Response.write( " <script> window.open   ( ' "&DZ& " ', ' '); </script> ")
response.End()
end   if
当我在执行跳转时,我的电脑能正常跳转,但在我旁边和客户的电脑上却不能显示,一点击就关闭窗口了,请教各位高手!非常感谢!



------解决方案--------------------
Response.write( " <script> window.close ( 'wsdg_yd.asp ', ' '); </script> ")
Response.write( " <script> window.open ( ' "&DZ& " ', ' '); </script> ")

我不太确定窗口关闭后,还会再执行下面的语句吗?
懒得测试,建议把这里的顺序换一下