August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.menubar.visible
The visible subproperty of the menubar property of the Window is used to determine if the menu bar is visible to the user or not. If it is visible, the property returns true. It returns false if the bar is not visible.
Listing 7.551 determines if several of the browser bars are displayed or not. In the example, you will see if the menu bar is visible by using the visible property.
<script language="JavaScript"> <!-- Hide // Write the browser's bar status to the page. If the value // is true, then it is displayed. document.writeln('<h3>Browser Chrome Status</h3>') document.writeln('Menu Bar: ... |
Read now
Unlock full access