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 location bar.
The example shows how this can be done in a secure way that requires privilege to be granted and in a non-secure way that does not.
Your script will need to be granted the UniversalBrowserWrite privilege to allow it to change the visibility of the locationbar.
// Request necessary privileges netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); // Hide location bar window.locationbar.visible = false; // There is another way that works without requesting privilege window.open('', '_top', 'location=0');
Prev | Home | Next |
Window.location | Up | Window.menubar |
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. |