window.open弹出后窗口为什么自动最小化
window.open("det_exresult.aspx", "", "width=680,height=700,scrollbars=no");

解决方案 »

  1.   

    string strScript = "popPage('" + strClientID + "');";
    popMessage("pop2", strScript, 0); public void popMessage(string popName, string msg,int method)
    {
    string strScript = "window.onload=function(){" + msg + "}";
    Page.ClientScript.RegisterStartupScript(this.GetType(), popName, strScript, true); }function popPage(obj){

    //var btnObj = document.getElementById(obj);
    //btnObj.click();
    window.open("det_exresult.aspx", "", "width=680,height=700,scrollbars=no");
    }