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, which, in this case, is the toolbar.
Your script will need to be granted the UniversalBrowserWrite privilege to allow it to change the visibility of the toolbar.
Be careful if you set both the menubar and toolbar to invisible, you will then have no reload capability to be able to refresh the screen. You will then only be able to quit.
In the Netscape Navigator 4 browser for Macintosh, setting the toolbar invisible and then visible restores the tool bar but hides the menu items. On that platform, hiding the toolbar also hides all the other window furniture, such as locationbar and statusbar.
// Request necessary privileges netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); // Hide tool bar window.toolbar.visible = false; // There is another way that works without requesting privilege window.open('', '_top', 'toolbar=0');