maximize window on document ready with jquery

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 ;)


window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);

This is not possible for main windows, only for dynamic created windows( created with

according to:


  • You can't resize a window or tab that wasn’t created by
  • You can't resize a window or tab when it’s in a window with more than one tab.

The same of for chrome. Haven't checked IE/Safari though.


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



You cannot do this

Control over the user's browser (minimize, maximize) is for the user only.


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.