Forum Moderators: open

Message Too Old, No Replies

Hiding real link from displaying in status bar

when the user clicks with his right mouse

         

Istvan

4:54 pm on Apr 9, 2004 (gmt 0)

10+ Year Member



At the moment I have the following:

<a href="http://www.widgetsite.com" onMouseover="write_it('Widgetsite');return true;" onMouseout="write_it('');return true;">Widgetsite as an example</a>

I want that when the visitor might click with his right mouse button on this link, that he still sees "widgetsite" in the status bar and not "http://www.widgetsite.com".

Is this possible?

Istvan

asquithea

5:02 pm on Apr 9, 2004 (gmt 0)

10+ Year Member



Why hide the link destination, and annoy your users? That kind of technique is used in phishing scams -- surely not the impression you want to give of your site? As a visitor, I want to know what I'm clicking on.

If you want to give a "friendly name" to your link, Javascript is the wrong way to go about it. Instead of changing the status bar text, fill in the title attribute -- interpreted by many browsers as a tooltip.

<a href="http://www.widgetsite.com" title="Widgetsite">Widgetsite as an example</a>

Istvan

7:09 pm on Apr 9, 2004 (gmt 0)

10+ Year Member



Hi,
Well I want to hide an affiliate link. So instead of showing www.widgetsite.com/aff=something in the statusbar I want to show www.widgetsite.com (without the "/aff=something"). Maybe I will go with php then, by using an id for linking to the widgetsite.com .

Istvan

amer7862000

7:18 pm on Apr 9, 2004 (gmt 0)

10+ Year Member



Hi Istvan,
the possibilies of hiding the status link when right-clicked are very slim... try the following alternatives:

1. disable right-clicking
2. use title tags

hope this helps!