Forum Moderators: open

Message Too Old, No Replies

hide the download link shown in status bar

hide the link using javascript

         

cooldls

11:26 pm on Mar 21, 2008 (gmt 0)

10+ Year Member



hi all,
In my webpage, i need to hide the link shown in status bar when the user brings the mouse on the download link.

The below given is wrong. i need it some similar kind of this. i dont want to use function sepearetely for each link since i need to do give lot of downloading links.

for example
<a href="javascript:;onclick('http://www.mywebsite.com/dwn.exe');">download</A>

Please help me out. thanks in Advance.

DrDoc

3:46 am on Mar 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

As much as I hate trying to hide a link, and as bad practice as it is, here's how you do it:

<a href="http://www.example.com/" onmouseover="window.status='Examples!'; return true;" onmouseout="window.status=''; return true;">Examples!</a>

But, again, please note that I do not at all recommend employing this tactic, as there is zero value to it ... and instead causes user annoyance and accessibility/usability [webmasterworld.com] problems.

cooldls

3:17 pm on Mar 24, 2008 (gmt 0)

10+ Year Member



hi, thanks for your help. yes you are right this will be annoying but i want to get this done at a particular place no other way. i am sorry.
Also i need an another help. if the users right click the link and go for copy shorcut they should not get the url link. there should be just html or someothe webpage file only.. this can be done using onclick. but it opens in the new window. i need it to be work in the same window. again i dont want to use functions.

i really appreciate your help..
Cheers,
Murali