Maximize window on initial page load

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!
LVL 2
codequestAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
Pravin AsarPrincipal Systems EngineerCommented:
You can not resize the window unless it is opened by javascript window.open () ?

If it is opened by javascript at the time of opening you supply fullScreen

e.g.

window.open ("http://www.yahoo.com", "new", "fullscreen,status=no");
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
smaccariCommented:
Unfortunately, you can not maximize a window unless you open it through window.open - as said pravinasar.
But you can resize it though (even if you seem not to want this solution).

Here, the window resize to width and height of screen, and move to upper left corner of screen:

self.resizeTo(screen.width,screen.height);
self.moveTo(0,0);

Though, that's not a maximize mode, as you stated.

But that's all you can do with a window already opened.
0
 
codequestAuthor Commented:
Thanks for your input.  I have no reason to doubt that, though I might let this ride a bit and see if anyone else wants to weigh in....

perhaps if you could confirm that the answer below is not the same as "maximize button press by user"  and does not apply here...

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20295248.html?query=maximize+window+on+load&topics=87

<html>
<body onLoad="if (document.all || document.layers) { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight)">
</body>
</html>

Grazie!

0
 
codequestAuthor Commented:
smcarri:  thanks for input.  I didn't see yours before my second post.  With a confirming opinion, I'm going to go with pravinasar's answer, and give you an assist.

pravinsar:  thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.