Web Window API | Window locationbar property
In Web API Window.locationbar property returns the object of locationbar, for which we can check the visibility.
Syntax:
objectReference = window.locationbar
Example: Check the visibility.
<!DOCTYPE html> <html> <head> <title> Window locationbar property </title> <style> a:focus { background-color: magenta; } </style> <script type="text/javascript"> function getvisibility() { document.getElementById('visibility').innerHTML = window.locationbar.visible; } </script> </head> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>HTML Window locationbar property</h2> <button onclick="getvisibility ();" id="btn"> Check visibility </button> <p id='visibility'></p> </center> </body> </html> |
chevron_right
filter_none
Output:
Click the button:

When the button is clicked:

Supported Browsers:
- Google Chrome
- Edge 12
- Firefox
- Safari
- Opera
Recommended Posts:
- Web Window API | Window statusbar property
- Web Window API | Window personalbar property
- Web Window API | Window scrollbars property
- Web Window API | DOM Window fullscreen property
- Web Window API | Window toolbar property
- Web Window API | Window menubar property
- Javascript | Window Blur() and Window Focus() Method
- Javascript | Window Open() & Window Close Method
- Window | Window.requestAnimationFrame() Method
- HTML | Window name Property
- HTML | Window top( ) Property
- HTML | Window self( ) Property
- HTML | Window sessionStorage( ) Property
- HTML | DOM Window parent Property
- HTML | Window screenY Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



