Solved

Automatically maximize a new window

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now