You've seen four window methods so far:
blur(). Let's look at two more that come in handy from time to time: resizing and moving windows.
window.resizeTo() method resizes a window to a given width and height. To change a small window into one that's 500 pixels wide and 200 pixels high, you'd use the following script:
Alternatively, you can change the size of a window by a specific amount using
window.resizeBy() method takes two numbers: how much the width of the window should change and how much the height should change. The code
window.resizeBy(10, −5); ...