Window.toolbar

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

Syntax

objRef = window.toolbar

Example

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

<html>
<head>
  <title>Various DOM Tests</title>
  <script>
    var visible = window.toolbar.visible;
  </script>
</head>
<body>
  <p>Various DOM Tests</p>
</body>
</html>

Very old versions of Firefox also allowed the toolbar visibility to be set, but the mechanisms that supported this have been removed.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'Window.toolbar' in that specification.
Living Standard
HTML5
The definition of 'Window.toolbar' in that specification.
Recommendation

Browser compatibility

BCD tables only load in the browser