Solved

hide status info on all hrefs

Posted on 2006-07-10
7
740 Views
Last Modified: 2008-01-09
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=''.....
0
Comment
Question by:ellandrd
7 Comments
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073179
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
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073223
ellandrd,

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

Cheers,
Sebastian
0
 
LVL 16

Author Comment

by:ellandrd
ID: 17073281
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 7

Expert Comment

by:searlas
ID: 17073427
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
 
LVL 5

Accepted Solution

by:
bastibartel earned 250 total points
ID: 17073469
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
 
LVL 5

Expert Comment

by:bastibartel
ID: 17073494
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
 
LVL 17

Assisted Solution

by:gops1
gops1 earned 250 total points
ID: 17073838
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now