The above example using type and MIME type, when called from anywhere in the HTML page will pop up an alert with the Hello World text.
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
The URL can be in image, link, or CSS style, and in the example below an alert will pop up when the link is clicked;