Window.toolbar

The Window.toolbar property returns the toolbar object, which can be used to check the browser toolbar visibility.

Value

A toolbar object.

Examples

The following complete HTML example demonstrates how the visible property of the toolbar object is used.

<html lang="en">
  <head>
    <title>Various DOM Tests</title>
    <script>
      const visible = window.toolbar.visible;
    </script>
  </head>
  <body>
    <p>Various DOM Tests</p>
  </body>
</html>

Specifications

Specification
HTML Standard
# dom-window-toolbar-dev

Browser compatibility

BCD tables only load in the browser