Solved

Automatically maximize a new window

Posted on 1997-07-03
2
262 Views
Last Modified: 2012-08-13
How can I programmatically cause a window I've created in the browser to be maximized?  This javascript will run under Netscape 3.01 on a kiosk where the user cannot maximize the window, so I want to maximize it when I create it.  Here is the javascript I use to create the window:        msgWindow=window.open("demo3.html","demoWindow","toolbar=no,width=100%,height=100%,directories=no,status=no,scrollbars=no,resize=yes,menubar=no")
I am also writing Java Applets for this .html, so if there is any way to pass my window to java and maximize it there, that would be fine also.
Thanks SO much.
0
Comment
Question by:mburrows050897
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
viro earned 100 total points
ID: 1268057
Try this:

window.open("demo3.html","demoWindow","toolbar=no, width="+this.width+",height="+this.height+",directories=no, status=no,scrollbars=no,resize=yes,menubar=no")

Note:
this way is less bytes:
window.open("demo3.html","demoWindow","toolbar=0,width="+ this.width+",height="+this.height+",directories=0,status=0, scrollbars=0, resize=1,menubar=0")

yes = 1
no = 0

Hope it Help!

 Vitor Rodrigues
viro@pluriproj.pt
    Portugal
0
 

Author Comment

by:mburrows050897
ID: 1268058
This answer was exactly what I needed, and VERY timely!  It worked perfectly.
Thanks, Viro.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question