Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    window properties

    Hello all.
    How can I print the boolean value for the visible property for the toolbar. I tried the below but toolbar shows undefined.
    <script type="text/javascript">
    <!--
    var tools=window.toolbar.visible;
    var loc = top.location.href;
    var host = top.location.host;

    // -->
    </script>
    </head>
    <body>
    <script type="text/javascript">
    <!--
    document.write("<p>top.location.href = " + loc + "</p>");
    document.write("<p>top.location.host = " + host + "</p>");
    document.write("<p>toolbar = " + tools + "</p>");
    // -->
    </script>

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    168
    Thanks
    0
    Thanked 5 Times in 5 Posts
    You might be using Internet Explorer because window.toolbar.visible is a Netscape / Gecko property.

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why do you need to know if a toolbar is visible or not?
    *keep it simple (TM)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •