--- title: Window.locationbar slug: Web/API/Window/locationbar translation_of: Web/API/Window/locationbar ---
{{APIRef}}

Restituisce l'oggetto locationbar, che può essere reso invisibile.

Sintassi

oggetto = window.locationbar

Esempio

Il seguente esempio completo mostra un possibile modo per utilizzare la proprietà visible dei vari oggetti "bar" (quelli che rappresentano una qualsiasi barra); mostra anche come cambiare i privilegi necessari per modificare tale proprietà.

The following complete HTML example shows way that the visible property of the various "bar" objects is used, and also the change to the privileges necessary to write to the visible property of any of the bars on an existing window.

<html>
<head>
  <title>Esperimenti sul DOM</title>
  <script>
    // modifico lo stato della barra in questa finestra
    netscape.security.PrivilegeManager.
        enablePrivilege("UniversalBrowserWrite");
    window.statusbar.visible=!window.statusbar.visible;
  </script>
</head>
<body>
  <p>Esperimenti sul DOM</p>
</body>
</html>

Note

Quando si carica l'esempio sopra riportato, il browser mostra una finestra di avviso. Si veda anche: window.menubar, window.personalbar, window.scrollbars, window.statusbar, window.toolbar

Specifiche

HTML5