Web Analytics Made Easy -
StatCounter How to control status bar message - CodingForum

Announcement

Collapse
No announcement yet.

How to control status bar message

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to control status bar message

    Hi Friends,
    I am trying to control what gets displayed on the status bar of my site.onMouseOver and onMouseOut event handlers displays the right message i.e:
    Code:
    onMouseOver="window.status='http://www.mysite.com/index.html'; return true"  
    onMouseOut="window.status='';return true"
    But when I add onMouseDown,it does not works.i.e.
    Code:
    onMouseDown="window.status='http://www.mysite.com/index.html'; return true"
    Can someone please tell me how to make this work???
    And how to control the status bar message when the site initially loads up.
    Any help would be appreciated.
    Thanks

  • #2
    OK Friends,I got this through google and it worked:
    Code:
    onmouseover="window.setTimeout('removestatus()',5);" onmousedown="window.setTimeout('removestatus()',5);"
    <script>
    function removestatus() {
    window.status = '';
    }
    </script>
    But now,I want to know if there is someway to hide the initial status bar message when the site loads up.It shows up something like:
    Opening up.....

    Can I hide/customize that message somehow??

    Comment


    • #3
      Don't mess around with the status bar, that's so uncool. Plus I can guarantee you that you'll have different behavior in different browsers and people that have JavaScript (or parts of it like messing around with status bars) disabled like me won't see any of your changes anyway.
      Stop solving problems you don’t yet have!

      Comment


      • #4
        Thanks VIP,
        But I think your answer has nothin to do with my question.....

        Comment


        • #5
          Most browsers now either don't allow the web page to update the status bar at all or provide an option where the browser owner needs to go in and turn on that facility in order for the code to work. Almost no one will see any status bar updates generated from the web page because few will bother to open up that potential security hole in their browser.
          Stephen
          Learn Modern JavaScript - http://javascriptexample.net/
          Helping others to solve their computer problem at http://www.felgall.com/

          Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

          Comment

          Working...
          X