Maximizing the current window in javascript
Posted
by user349134
on Stack Overflow
See other posts from Stack Overflow
or by user349134
Published on 2010-05-24T16:56:49Z
Indexed on
2010/05/24
17:01 UTC
Read the original article
Hit count: 207
Is there a way I can maximize a currently minimized window from Javascript? Here's my situation:
I have a series of links that all target the same external window (e.g. "MyNewWindow"). When I click a link, a new window pops up. If I click another link, the page pops up in the same window as expected. If I minimize the "MyNewWindow" popup, I'd like to be able to click another link and have that window maximize.
My approach was to put something on the onLoad part of the body so that when the page is refreshed it will automatically "maximize" if it is minimized. Note: Using window.MoveTo() and window.resizeTo() doesnt seem to do the trick (the window stays minimized).
Thanks!
© Stack Overflow or respective owner