Window.scrollbars (Property)

A reference to an object that represents the scroll bar.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:Bar object
JavaScript syntax:-myWindow.scrollbars
-scrollbars

This is a read-only property containing a reference to a Bar object whose visible property contains a Boolean value that controls the visibility of the screen furniture represented by the object.

In this case, it is supposed to control the visibility of the scroll bars.

Warnings:

Example code:

   // Request necessary privileges

   netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");

   // Hide scroll bars

   window.scrollbars.visible = false;

   // There is another way that works without requesting privilege

   window.open('', '_top', 'scrollbars=0');

See also:Bar object, Frame object, UniversalBrowserWrite, Window furniture, Window object, Window.locationbar, Window.menubar, Window.personalbar, Window.statusbar, Window.toolbar

Property attributes:

ReadOnly.

insert figure 0064