Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No URL to be seen on status bar when clicking on link

Status
Not open for further replies.

celia05es

Programmer
Jan 10, 2002
81
US
Hi,

I have tried to disable the status bar, it works ok... except when the user clicks on the link.... the complete URL is then seen on the status bar!!
What can I do to prevent it?
Thanks
ELisabeth
 
There isn't a lot you can do, really.

The status bar shows status information whilst the page is loading/when you mouse-over links etc. Unless you have a window that you have "popped up" and specifically set the status bar to not show (which will achieve the result of not showing you the detail) then you will still be able to see information here (mostly) [smile]

You could set the status bar information onmouseover and onmouseout, and this may be all you want.


Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Apart from totally removing the status bar (by opening a new window), I don't think you can ever guarantee to stop a browser showing the URL.

For example, FIrefox, by default, does not let you modify the contents of the status bar.

Give up while you're ahead on trying to be perfect with it - settle it working in the browsers it works in, and don't worry about the rest.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
celia05es, you could try a different approach.
Rather than putting the link in the HREF do something like this:

Code:
<html>
<head>
<script language="javascript">
function sendtomyurl(where)
{
  window.location=where;
}
</script>
</head>
<body>
<a href="#" onclick="sendtomyurl('[URL unfurl="true"]http://www.google.com')">Link[/URL] 1</a><br>
<a href="#" onclick="sendtomyurl('[URL unfurl="true"]http://www.hotmail.com')">Link[/URL] 2</a>
</body>
</html>

You have the disadvantage that if the client has disabled javascript that it will not work but that would be true even if you were trying to block info on the status bar.

Rather than using an anchor tag you could also use a span or div and use mouse events to handle and style changes and onclick or onmousedown or whatever to handle clicks on the psuedo link.


Paranoid? ME?? WHO WANTS TO KNOW????
 
You have the disadvantage that if the client has disabled javascript that it will not work but that would be true even if you were trying to block info on the status bar.

But at least the anchor elements with hrefs would still be USABLE by people with no JavaScript. Using your method, yuor are giving NO support to people with JavaScript disabled.

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top