Window.scrollbars

Summary

Returns the scrollbars object, whose visibility can be checked.

Syntax

JavaScript
objRef = window.scrollbars 

Example

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

JavaScript
<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

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/window/scrollbars

API HTML DOM NeedsCompatTable NeedsExample NeedsMarkupWork NeedsSpecTable Property Reference Référence Window