asp如何实现弹出窗口提示 20
response.write "<script language='javascript'>"
response.write "alert('恭喜,注册成功。单击“确定”登陆本站。');"
response.write "</script>"
response.write "<meta http-equiv=refresh content='0;URL='要转入页的地址(如index.asp)'>"
扩展资料:
ASP弹出窗口总结
1、子窗口刷新父窗口
this.Response.Write("<script>window.opener.location.href=window.opener.location.href;</script>");
this.Response.Write("<script>window.opener.location.href='WebForm1.aspx';</script>");
2、弹出提示窗口跳到webform2.aspx页(在一个IE窗口中)
this.Response.Write(" <script language=javascript>alert('注册成功');window.window.location.href='WebForm2.aspx';</script> ");
3、弹出提示窗口,确定后,刷新父窗口
this.Response.Write("<script>alert('发表成功!');window.opener.location.href=window.opener.location.href;</script>");
推荐于2017-10-06 · 知道合伙人软件行家
知道合伙人软件行家
向TA提问 私信TA
正常js代码弹出提示是这样:<script>alert('要弹出的提示文字');</script>
asp中只需要写:
response.write "<script>alert('要弹出的提示文字');</script>"
response.write "<script language='javascript'>"
response.write "alert('这里是提示文字信息!');"
response.write "</script>"
如果达到那个条件就会弹出窗口显示XXXXXXX
response.end