Window.open具有最大化的大小

时间:2014-04-04 08:31:42

标签: javascript asp.net internet-explorer-8

 URL = "window.open('../GBY/Reports/ReportViewer.aspx?ReportParams=" + ReportParams + "&ReportName=" + ReportName + "  ' , '_blank');";

            ScriptManager.RegisterClientScriptBlock(this.Page, typeof(UpdatePanel), "OPEN_WINDOW", URL, true);

我们使用上面的代码在另一个窗口中打开报表查看器。但那个窗口打开没有最大化的尺寸。我想打开最大化尺寸。用上面的代码怎么做?

1 个答案:

答案 0 :(得分:0)

 window.open('index.html','_blank','fullscreen=yes');

试试这个

function openWin()
{
myWindow = window.open("","","width=100,height=100"); // Opens a new window
}

function resizeWin()
{
 myWindow.resizeTo(250,250);                           // Resizes the new window
 myWindow.focus();                                     // Assures that the new window gets      focus
}