Link to home
Start Free TrialLog in
Avatar of Donna Kainer
Donna KainerFlag for United States of America

asked on

How to do Window.Open and get the new window's size maximized

Is there a way, without extensive coding or third party software to get the window opened by the Window.Open functionality to be opened maximized to the screen?

I have seen ways that allow me to position the window and speciify the width and height, but I need the window to be maximized without knowing what that size is.

The following command is in my codebehind and works for opening the window. It does not, however, maximize the screen to the window.
ClientScript.RegisterStartupScript(Me.GetType(), "MyScript", "window.open('CustomerDetailForm.aspx?Cust_Code=" + strCustCode + "','_blank','maximize=true, titlebar = no, status=yes,resizable=no,toolbar=no,menubar=no,location=yes,directories=no,fullscreen=true, scrollbars=yes, location=yes');", True)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Donna Kainer

ASKER

Abandon this question.