window.resizeTo() function, which would resize the window to any specified size. The function somehow needs to get the screen’s width and height to be supplied as parameter, and the window itself need to be moved to the top left corner of the screen using the window.moveTo() function so that it will be displayed in full.
The following example will maximize the browser window as the page loads:
The browser window will maximize if a user click on the URL as in the following example:
The function seem to longer be supported by modern browsers
Comment anonymously. Login not required.