Question: How do I resize a window?
Answer: In most modern browsers, you can programmatically resize the browser window by using the method
. Prior to resizing the window, your script can check the current width and hight using
, respectively. (Internet Explorer does not support
; here is a partial workaround). Try resizing the window and checking
Notes. Recent versions of Internet Explorer and Firefox
allow you to resize the browser window that has only one open tab –
but disallow the resizing of any window with two or more tabs.
Google Chrome or Opera browsers may allow you to resize smaller
script-generated windows – but
disallow the resizing of the primary browser window. Here is what
resizable script-generated windows look like in Opera 11 and Chrome