Skip to content
Related Articles

Related Articles

Web Window API | Window locationbar property

Improve Article
Save Article
Like Article
  • Last Updated : 31 Jul, 2019

In Web API Window.locationbar property returns the object of locationbar, for which we can check the visibility.


objectReference = window.locationbar

Example: Check the visibility.

<!DOCTYPE html>
        Window locationbar property
        a:focus {
            background-color: magenta;
    <script type="text/javascript">
        function getvisibility() {
            document.getElementById('visibility').innerHTML = 
        <h1 style="color:green;">  
        <h2>HTML Window locationbar property</h2>
        <button onclick="getvisibility ();"
          Check visibility
        <p id='visibility'></p>

Click the button:

When the button is clicked:

Supported Browsers:

  • Google Chrome
  • Edge 12
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!