Window.moveTo() is marked Baseline Widely available on MDN (since July 2015). Support for actually moving a window varies by browser policy and OS.
✓ Baseline · Widely available*
moveTo()
API is widely available; successful moves depend on popup / OS rules.
API OKCore tag support
ChromeYes*
Restricted
EdgeYes*
Restricted
FirefoxYes*
open() only / single tab
SafariYes*
Restricted
OperaYes*
Restricted
HTML element100% supported
Bottom line: Teach the API, but design for popups — and accept that many environments will ignore the call.
Frequently Asked Questions
It moves the current window so its top-left corner is at absolute screen coordinates (x, y), in CSS pixels from the top-left of the screen.
No. MDN marks Window.moveTo() as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard — but browsers restrict when it actually moves a window.
moveTo(x, y) sets an absolute position. moveBy(dx, dy) shifts relative to the current position.
Browsers often block moving the main tab. Firefox (since 7) also blocks windows not created by window.open() and windows with more than one tab. Some environments (Wayland, mobile) may not move windows at all.
undefined. Check screenX / screenY afterward if you need the position (when the browser allows the move).
After opening with window.open(), call moveTo((screen.availWidth - outerWidth) / 2, (screen.availHeight - outerHeight) / 2) — or set left/top in the open() features string.