Connecting Tech Pros Worldwide Forums | Help | Site Map

Maximize window on initial page load

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 5 '07
How can I get the browser window to maximize on initial page load? Just to be clear, I mean specifically the kind of maximize that happens when you press the maximize button on the upper right hand corner of the browser window...not the "as big as possible" in the intermediate state between maximize and minimize (there's a difference of at least 1 pixel in size...)

Hope that's clear enough.

Any guidance on this would be appreciated.

Thanks

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jul 5 '07

re: Maximize window on initial page load


Welcome to TSDN!

I don't know if this is a good idea. Assuming it is and it is expected by the user, you could use the window.resizeTo() method. The width and height could be provided by the availWidth and availHeight properties of the Screen object.
volectricity's Avatar
Expert
 
Join Date: Jun 2007
Location: Baltimore
Posts: 587
#3: Jul 5 '07

re: Maximize window on initial page load


What you want to do can't be done, but can be emulated as acoder has described.

Browser developers don't like giving you too much control, but now that resizeTo is a standard, they must keep that much.
Newbie
 
Join Date: Jun 2007
Posts: 18
#4: Jul 5 '07

re: Maximize window on initial page load


Quote:

Originally Posted by volectricity

What you want to do can't be done, but can be emulated as acoder has described.

Browser developers don't like giving you too much control, but now that resizeTo is a standard, they must keep that much.


Hi,

Can you try using the code. All you need to do is that, You have to change the parameters of pagename, width & height.

window.open(PageName.aspx' ,"","resizable=no,status=no,toolbar=no,menubar=no, location=no,scrollbars=yes,titlebar=no,width=300,h eight=400,left=0,top=0");
Reply