0

How to hide onmouseover status of an anchor tag

When we mouseover on edit link we get some link like this index.php?editid=1;

so how to hide this on mouseover

3
Contributors
3
Replies
14
Views
3 Years
Discussion Span
Last Post by Troy III
0

maybe something like this...

<!DOCTYPE html>
<html>
<head>
 <title>Demo</title>
</head>
<body>

<a href="javascript:void(0)" onclick="myFunction('http://www.google.com')">Google</a>

<script>
function myFunction(url)
{
   window.open(url);
}
</script>

</body>
</html>

This is just one idea. I'm sure that you get the idea here and can come up with something more specific for your needs.

0

Of course, none of these client side techniques prevent a user from right clicking in their browser and viewing source. If you truly want to hide the URL from the end user, you'll have to handle that server side.

0

that will only replace the:

index.php?editid=1;

with:

"javascript:void(0)"

when the link is hovered.

I also am of an opinion that this kind of things should not be allowed.
The client has the right to know the link value before clicking on it at all times and without having to take any further actions other than hovering.

Edited by Troy III

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.