打开指定大小的新窗体

 

public static void OpenWebFormSize(string url, int width,int heigth,int top,int left)
    {
        #region
        string js = @"<Script language='JavaScript'>window.open('" + url + @"','','height=" + heigth + ",width=" + width + ",top="+top+",left="+left+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no');</Script>";

        HttpContext.Current.Response.Write(js);
        #endregion
    }

 

 

你可能感兴趣的:(JavaScript,String,url)