Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

Summary

Returns the scrollbars object, whose visibility can be checked.

Syntax

objRef = window.scrollbars 

Example

The following complete HTML example shows how the visible property of the scrollbars object is used.

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

See also:

window.locationbar

,

window.menubar

,

window.personalbar

,

window.statusbar

,

window.toolbar

Specification

HTML5

Document Tags and Contributors

 Contributors to this page: fscholz, daniran73, teoli, iamanupmenon, Sheppy, Bzbarsky, Potappo, Mgjbot, Dria, JesseW
 Last updated by: daniran73,