你的想法没法实现.
你的实现可以模拟.
window.open(your page);
window.openner=null;
window.close();

解决方案 »

  1.   

    缺省執行 http://127.0.0.1/test/test.aspx
      

  2.   

    <script id=clientEventHandlersJS language=javascript>
    <!--function window_onload() {
        //dircetClose.Click();
        window.open("login/login.aspx","","toolbar=0,menubar=0,location=0,status=0,left=0,top=0,height="+(screen.availHeight-26) +",width="+(screen.availWidth-10),true);
    }//-->
    </script>
      

  3.   

    ? 你的意思是在test.aspx的page_load()里寫上:
        Response.Write("<script language='JavaScript'>window.open('test.aspx','new','top=10,left=10,height=500,width=700');</script>");
        Response.openner=null;
        Response.close();
      

  4.   

    ji_hui: 這樣做時會出現一個;要關閉這個窗口嗎? 的確認框, 請問如何使之不出現?F9: 請問這個代碼應該放在那裡,如何會引起這個事件(window_onload())的執行?
      

  5.   

    Response.Write("<script>window.open('index.aspx','','fullscreen');</script>");
    Response.Write("<script>window.opener=null;window.close(this);</script>");