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.
}Navigator: windowControlsOverlay property / notebook
Navigator: windowControlsOverlay property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.