Reputation: 17475
That might sound like a stupid one but I can't find anything relevant : how to maximize the window on document ready
with jquery ? Or any other generic solution that will work fine on all browsers...
Thanks guys ;)
Upvotes: 4
Views: 22599
Reputation: 4599
This is not possible for main windows, only for dynamic created windows( created with window.open)
according to:
Quote:
The same of for chrome. Haven't checked IE/Safari though.
Upvotes: 4
Reputation: 120
window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);
Upvotes: 8
Reputation: 35842
I found this method. But I can't make it work. Theoretically, it should be possible to change the width and height of the screen, using positive values.
window.resizeBy(xDelta, yDelta);
For more information, visit http://www.w3schools.com/jsref/met_win_resizeby.asp.
Upvotes: -2
Reputation: 146310
NO
You cannot do this
Control over the user's browser (minimize, maximize) is for the user only.
Upvotes: -9