您的位置:首页 > 其它

打开指定大小的新窗体

2008-12-30 11:17 232 查看
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
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: