Solved

Automatically maximize a new window

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now