Response.Write("<script>window.close();</script>");

解决方案 »

  1.   

    关闭窗口?
    试试这个
    <html> <head> <title>直接关闭IE浏览器</title> </head> <body> <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0></OBJECT> <input type="button" value="直接关闭" onclick="WB.ExecWB(45,1)"> <input type="button" value="一般的关闭窗口" onclick="window.close();"> </body> </html>
      

  2.   

    还有一种办法可以不需使用OBJECT:<a href="javascript:window.opener=null;window.close();">关闭此页面</a>
    要是嫌状态栏不好看,可以把script定义到onclick事件里面。