Call popup.resizeTo. Absolute size for that window.
Handle blockers. If open returns null, show a message.
Compatibility
Browser Support
Window.resizeTo() is marked Baseline Widely available on MDN (since July 2015). Availability ≠ unrestricted resizing — user agents still limit when the request succeeds.
✓ Baseline · Widely available
resizeTo()
Request an absolute outer window size across modern browsers.
99%Core tag support
ChromeYes
Full support (restricted)
EdgeYes
Full support (restricted)
FirefoxYes
Full support (restricted)
SafariYes
Full support (restricted)
OperaYes
Full support (restricted)
HTML element100% supported
Bottom line: Safe to teach and call on popups. Do not build critical UX that requires resizing the user’s main tab.
Frequently Asked Questions
It requests a new absolute outer size for the window: resizeTo(width, height) sets outerWidth and outerHeight in pixels (including browser chrome).
No. MDN marks Window.resizeTo() as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard — but browsers heavily restrict when it works.
Usually no. MDN notes you cannot resize a window or tab that was not created by window.open(), and you cannot resize when the window has multiple tabs.
resizeTo(w, h) sets an absolute size. resizeBy(dw, dh) changes size by a relative delta from the current size.
undefined. There is no success flag. Read outerWidth / outerHeight, or listen for the resize event, to see if anything changed.
Not always. MDN notes it might not resize synchronously, and on some environments (like mobile) it might not resize at all. Listen for the resize event to observe changes.