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.
Your script will need to be granted the UniversalBrowserWrite privilege to allow it to change the visibility of the scrollbars.
// 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');
Prev | Home | Next |
Window.scroll() | Up | Window.scrollBy() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |