tags:

views:

83

answers:

3

How can I prevent showing web address at the status bar while hovering a hyperlink?

+1  A: 
Sarfraz
While not necessarily considered good practise, and useless for hiding the actual URL, it can be used to display a more user-friendly text in the status bar
Mark Baker
@Mark - The users who tend to look at the status bar will tend to find that *less* friendly. Use the `title` attribute for user friendly text.
David Dorward
@David As a rule I do always use Title
Mark Baker
+1  A: 

There is no way to reliably do this, and no point in doing it either.

Any information the user could get out of the status bar is available to them through other methods, so it can't add security.

If you are worried about aesthetics, then the majority of people who would look at it are more likely to be annoyed by the absence of the normal status information then they would be the URI appearing 'ugly'.

If you really want to try to do this, you can look at window.status. Happily, most modern browsers allow this feature to be blocked.

Firefox has a dialog that allows selective JS features to be disabled, including setting the status bar

David Dorward
A: 

You could change your hyperlink to use JavaScript to navigate to the URL. For example, if you wanted a link to http://conglomo.co.nz/:

<a href="javascript:;" onclick="location.href='http://conglomo.co.nz/'"&gt;Conglomo&lt;/a&gt;

Although this is not as pretty as changing window.status (which does not work for everyone due to browser settings) it will hide the URL from the status bar completely.

Duke Spukem
It kind of makes it impossible to use tabs =(
Josh Davis