Response.Write("<script language=javascript>window.open('login.aspx');window.parent.close();</script>")
这样试一下。这种是适合框架页的,并且一定要是框架里面的页的吧。否则可能会因为parent不存在而出错。如果你不是要在框架中的,那就把parent.去掉。

解决方案 »

  1.   

    LZ 自己改改,以下代码在 IE 6 下测试可用!L@_@K!// 父窗口代码
        window.open("login.aspx", "_blank", "toolbar=no,location=no,directories=no,menubar=no,status=yes,resizable=yes,scrollbars=auto");
        window.opener=null;
        window.close();// 子窗口随便写,相互不传参,要传就拼到地址后面!
      

  2.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!-- DW6 -->
    <head>
    <meta http-equiv="Content
     onload = -Type" content="text/html; charset=utf-8" />
    <title>shawl.qiu template</title>
    <script type="text/javascript">
    //<![CDATA[
      function()
      {
      
      }

    onunload =
     function()
    {
     opener = null
     self.close();
     open('about:blank', 'sq', 'width=500, height=500');
    }
    //]]>
    </script>
    </head>
    <body></body>
    </html>