Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Navigator
  4. windowControlsOverlay

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.

Value

TheWindowControlsOverlay interface.

Examples

js
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

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp