dom / latest / windowcontrolsoverlay / gettitlebararearect.html /

WindowControlsOverlay.getTitlebarAreaRect()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The getTitlebarAreaRect() method of the WindowControlsOverlay interface queries the current geometry of the title bar area of the Progressive Web App window.

This only applies to Progressive Web Apps installed on desktop operating systems and which use the Window Controls Overlay API.

Syntax

getTitlebarAreaRect()

Return value

A DOMRect that provides the coordinates and size of the title bar area within the app's content.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
getTitlebarAreaRect
98
98
No
No
84
No
No
No
No
No
No
No

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WindowControlsOverlay/getTitlebarAreaRect