THE CURRENT WINDOW
To resize window, use "resizeTo(newWidth, newHeight)." Example:
To move another window, you need to set the windowObject in windowObject.moveTo(x, y) with the window that you wish to move. Normally, you'll have this object when you're opening a new window with window.open().
Run this code to open a new window:
That code opens a new window object which is called "tutorialWindow." Now you can resize that window like this:
Note: you cannot move or resize window that has contents from different domain. Ie: If your page is at a.com, and you open a window and put the content of b.com, then you won't be able to do much with that window.