• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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

Donna Kainer
Donna Kainer
1 Solution
Paul MacDonaldDirector, Information SystemsCommented:
Without being able to check right now, what if you set width and height to 100%?
Donna KainerAuthor Commented:
Abandon this question.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now