hide status info on all hrefs

how can i hide the status info from shown when user hovers over href.  I need a global solution.  There are too many links in the site to edit each one and add onmouseover='...' and onmouseout=''.....
LVL 16
ellandrdAsked:
Who is Participating?
 
bastibartelConnect With a Mentor Commented:
ellandrd,
Sorry, Maybe this helps you


<SCRIPT LANGUAGE="JavaScript"><!--

function MyMouseOver()
{
    window.status = "Nothing";

}
window.captureEvents(Event.MOUSEOVER)
window.onmouseover = MyMouseOver
//--></SCRIPT>


Cheers,
Sebastian
0
 
bastibartelCommented:
Hi ellandrd,
You can set the default status bar text by
   window.defaultStatus = "This is the status bar";

and some text on mouseover event by
   onmouseover="self.status='This is a link'; return true;"



Cheers!
0
 
bastibartelCommented:
ellandrd,

or maybe "window.status='another text';...
instead of self.status

Cheers,
Sebastian
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ellandrdAuthor Commented:
but this dont hide the status bar info when i hover over href's?

i want to hide the info shown in the status when the user hovers over the href.  like i said i could add onmouseover to each link but there is too many so i need a solution that will get all links in page and if user hovers over href hide status bar info...

i was trying to get this working but it dont...

function hideHrefPaths()
{
      var dlinks = document.links;

      for (var i=0; i<(dlinks.length); i++)
      {
              dlinks[i].onmouseover = "window.status='';";
      }
}
0
 
searlasCommented:
Are you using Firefox?

The main use of this functionality is to deceive and the user, and hide the true destination of links.
As there are very few legitimate uses, it's deliberately blocked by some browsers as a security measure.

In Firefox, you can set a preference to allow this functionality by going to:
Options -> Content -> Advaned ... (next to JavaScript options)

There are two separate options under "Allow scripts to:"
'Hide the status bar' and 'Change the status bar text'

You shouldn't even be trying to do this... what's the benefit to the user?
0
 
bastibartelCommented:
ellandrd,

Oh, and maybe wrap the event handler replacement and execute it onLoad

function SetEventHandler()
{
   window.captureEvents(Event.MOUSEOVER)
   window.onmouseover = MyMouseOver
}

<body onLoad="SetEventHandler"; ...>
0
 
gops1Connect With a Mentor Commented:
Change your code slightly


     var dlinks = document.links;

     for (var i=0; i<(dlinks.length); i++)
     {
             dlinks[i].onmouseover = function(){window.status='';return true;}
     }
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.