?
Solved

Automatically maximize a new window

Posted on 1997-07-03
2
Medium Priority
?
267 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 400 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
Suggested Courses

752 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