2014-04-04 71 views
0
URL = "window.open('../GBY/Reports/ReportViewer.aspx?ReportParams=" + ReportParams + "&ReportName=" + ReportName + " ' , '_blank');"; 

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

我们使用上述代码在另一个窗口中打开报告查看器。但是,这个窗口打开不是最大化的大小。我想打开最大尺寸。如何用上面的代码做到这一点?Window.open具有最大化尺寸

+0

http://stackoverflow.com/questions/10297168/how-to-open-maximized-window-with-javascript –

回答

2
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 
} 
+0

感谢,但它('全屏= YES ')作为整个屏幕打开。我想要最大化尺寸的窗户。 – Singaravelan

+0

尝试编辑的部分...更改250到你需要的大小... –