spacer.png, 0 kB
spacer.png, 0 kB
Home arrow Javascript arrow Hide href address on mouse over link
Hide href address on mouse over link PDF Print E-mail
Written by Administrator   
giovedě, 21 agosto 2008

If you need to hide the href address a browser usually shows when the mouse is over a particular link you can follow the below example.
We will show hide link instead of the usual destination page.


<a href="page1.html" onMouseOver="window.status='hide link';return true;" onMouseOut="window.status='hide link';return true;">click here!</a>

This is useful especially if the href contains special javascript code we want to hide to destination user.
This method is however not suggested because the site will result not clear, and also not fair for the user; avoiding the possibility to evaluate the selected element. A proper and well build site should avoid such tricks.

Last Updated ( giovedě, 21 agosto 2008 )
 
Next >
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB