Navigator: windowControlsOverlay property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
ThewindowControlsOverlay read-only property of theNavigatorinterface returns theWindowControlsOverlay interface, which exposesinformation about the title bar geometry in desktop Progressive Web Apps that use theWindow Controls Overlay API.
Progressive Web Apps installed on desktop Operating Systems can opt-in to theWindow Controls Overlay feature by using thewindow-controls-overlay value in thedisplay_override web app manifest member.
Doing so hides the default window title bar and gives the app access to the full areaof the app window.
In this article
Value
TheWindowControlsOverlay interface.
Examples
if ("windowControlsOverlay" in navigator) { const rect = navigator.windowControlsOverlay.getTitlebarAreaRect(); // Do something with the title bar area rectangle.} else { // The Window Controls Overlay feature is not available.}Specifications
| Specification |
|---|
| Window Controls Overlay> # windowcontrolsoverlay-interface> |