The maximum window on the document, prepared using jquery

This may seem silly, but I can't find anything important: how to maximize a window on document ready using jquery? Or any other general solution that works fine on all browsers ...

Thanks guys;)

+4
source share
4 answers
 window.moveTo(0, 0); window.resizeTo(screen.availWidth, screen.availHeight); 
+6
source

It's impossible for main windows, only for dynamically created windows (created using window.open)

in accordance with:

Quote:

  • You cannot resize a window or tab that window.open has not created.
  • You cannot resize a window or tab when it is in a window with more than one tab.

The same goes for chrome. However, did not check IE / Safari.

+3
source

I found this method. But I canโ€™t make it work. Theoretically, you need to be able 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 .

-2
source

NO

You cannot do it

User browser control (minimization, maximization) is performed only for the user .

-eight
source

Source: https://habr.com/ru/post/1384768/


All Articles