There are several ways to set a window's size. When opening a window using window.open(), you just have to set the width and height options. For existing windows, however, JavaScript offers two methods of the window object:
Warning Resizing a window is considered more or less unfriendly. One of the principles of the Web is that the size of the client is irrelevant and can be adjusted by the user. So use the technique in this phrase wisely. Also note that you cannot resize the window to a width or height lower than 100 pixels. |