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


No announcement yet.

How to control status bar message

  • 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:
    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.
    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.

  • #2
    OK Friends,I got this through google and it worked:
    onmouseover="window.setTimeout('removestatus()',5);" onmousedown="window.setTimeout('removestatus()',5);"
    function removestatus() {
    window.status = '';
    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??


    • #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!


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


        • #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.
          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.