--- title: Window.menubar slug: Web/API/Window/menubar tags: - API - HTML DOM - Propriété - Reference - Window translation_of: Web/API/Window/menubar --- <div>{{ APIRef() }}</div> <p>La propriété <code><strong>Window.menubar</strong></code> renvoie l'objet <code>menubar</code>, dont la visibilité peut être vérifiée.</p> <h2 id="Syntaxe">Syntaxe</h2> <pre class="syntaxbox notranslate"><em>objRef</em> = <em>window</em>.menubar </pre> <h2 id="Exemple">Exemple</h2> <p>L'exemple HTML complet suivant montre comment la propriété <code>visible</code> de l'objet <code>menubar</code> est utilisée.</p> <pre class="brush:html notranslate"><html> <head> <title>Divers Tests DOM</title> <script> var visible = window.menubar.visible; </script> </head> <body> <p>Divers Tests DOM</p> </body> </html> </pre> <h2 id="Spécifications">Spécifications</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Spécification</th> <th scope="col">Statut</th> <th scope="col">Commentaire</th> </tr> <tr> <td>{{SpecName('HTML WHATWG', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td></td> </tr> <tr> <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td></td> </tr> </tbody> </table> <h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> <div class="hidden">Le tableau de compatibilité de cette page est généré à partir de données structurées. Si vous souhaitez contribuer aux données, veuillez consulter <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> et envoyez-nous une pull request.</div> <p>{{Compat("api.Window.menubar")}}</p> <h2 id="Voir_également">Voir également</h2> <ul> <li>{{domxref("Window.locationbar")}}</li> <li>{{domxref("Window.personalbar")}}</li> <li>{{domxref("Window.scrollbars")}}</li> <li>{{domxref("Window.statusbar")}}</li> <li>{{domxref("Window.toolbar")}}</li> </ul>