Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximize an explorer window on load?

Status
Not open for further replies.

gigabite

Technical User
Nov 24, 2002
1
US
I'm trying to find out how to maximize a window on load.  Like when you click on a link and it pops up in a new window.  I want that window to be maximized.  I know you can set the size properties on it, but then when i do the form usually isn't in the top left corner so it goes off the screen on the right side.  Please help.<br><br>Thank you, Mike
 
mike-<br><br>you can also set the top and left attributes of the window:<br><br>window.open(&quot;someName&quot;,&quot;someSRC&quot;,&quot;width=* height=* top=* left=*&quot;)<br><br>I'm not so sure about the syntax kon the attributes, that is I don't know if they are seperated by commas, spaces, or semicolons, or what. the top and left attributes are just like those that css uses to dynamically position content. <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
You can also try with this script placed into your &lt;HEAD&gt; section:<br><br>if (top.frames.length!=0)<br>top.location=self.document.location;<br><br>self.moveTo(0,0)<br>self.resizeTo(screen.availWidth,screen.availHeight)<br><br>I've tested it with NS 4.x and IE 5.x and works just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top