屏幕尺寸的window.open问题

问题描述:

亲爱的,

我有一种方法应该打开一个窗口
但是,我需要窗口具有最大的屏幕尺寸才能覆盖上一个窗口或在新标签页中打开.
我正在使用IE8

这是我的代码,它会弹出一个小弹出窗口

Dears,

i have a method that should open a window
however, i need the window to have maximum screen size to cover the previous window or open in a new tab.
i''m using IE8

and here''s my code that''s opening a small pop up

private void OpenNewWindow(string url)
        {
 ScriptManager.RegisterStartupScript(this, typeof(string), "OpenWindowScript", "window.open('"+url+"');", true);
}



此致



Regards,

hi,
您可以通过以下方式提供高度和宽度


u can provide height and width by following way

var strHelp = 'dialogHeight=430px;dialogWidth=400px;scroll=no;resizable=yes;toolbar=no;status=no;menubar=no;';

 window.open("page.aspx?" + QueryStr, "popup", strHelp, null);