Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Window Management API allows you to get detailed information on the displays connected to your device and more easily place windows on specific screens, paving the way towards more effective multi-screen applications.
Historically, we have used Window.open() to manage browser windows related to the current application — opening new windows, resizing and closing existing windows, etc. For example, to open a 400×300 window 50 pixels from the left and top of your screen:
You can retrieve information about your screen from the Window.screen property, such as how much screen space you have available to place windows in.
However, the above features are limited. Window.screen only returns data about the primary screen, and not secondary displays available to a device. To move a window to a secondary display, you could use Window.moveTo(), but you'd have to guess what coordinates to use based on where it is placed in your setup relative to the primary display.
The Window Management API provides more robust, flexible window management. It allows you to query whether your display is extended with multiple screens and get information on each screen separately: windows can then be placed on each screen as desired. It also provides event handlers to allow you to respond to changes in the available screens, new fullscreen functionality to choose which screen to put into fullscreen mode (if any), and permissions functionality to control access to the API.
For details on how to use it, see Using the Window Management API.
Note: In modern browsers, a separate user gesture event is required for each Window.open() call, for security purposes. This prevents sites from spamming users with lots of windows. However, this poses an issue for multi-window applications. To work around this limitation, you can design your applications to open no more than one new window at once, reuse existing windows to display different pages, or advise users on how to update their browser settings to allow multiple windows.
The Window Management API is useful in cases such as:
The window-management Permissions-Policy can be used to control permission to use the Window Management API. Specifically:
Developers can explicitly grant permission for an <iframe> to use Window Management via the allow attribute:
Represents the details of all the screens available to the user's device.
ScreenDetailed Secure contextRepresents detailed information about one specific screen available to the user's device.
Fired on a specific screen when it changes in some way — for example available width or height, or orientation.
Screen.isExtended Secure contextA boolean property that returns true if the user's device has multiple screens, and false if not.
Element.requestFullscreen(), the screen optionSpecifies on which screen you want to put the element in fullscreen mode.
Window.getScreenDetails() Secure contextReturns a Promise that fulfills with a ScreenDetails object instance.
You can find full examples here:
| Window Management |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 7, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.