Response.Write("<script>window.close();</script>");// 会弹出询问是否关闭
Response.Write("<script>window.opener=null;window.close();</script>");// 不会弹出询问
csdn论坛上看到的,保存一下。
博客记录了ASP实现窗口关闭的两种方式。一种是使用Response.Write(\<script>window.close();</script>\),会弹出询问是否关闭;另一种是使用Response.Write(\<script>window.opener=null;window.close();</script>\),不会弹出询问。
9487
9121
2090
2382

被折叠的 条评论
为什么被折叠?
