Solved

Automatically maximize a new window

Posted on 1997-07-03
2
266 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

728 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