Any one who know the answer please give me the suggestion to do this. I am using mozilla firefox browser, When i hover the image i get the url path of where it is located(left bottom of the mozilla)
Here is the screenshot:

Is it possible to hide the href path. Any suggestion would be great.
Assuming that the status bar shows the href destination, you can remove the href attributes onload and call window.location onclick instead: (jQuery):
$(function() {
$('a[href]').each(function() {
var href = this.href;
$(this).removeAttr('href').css('cursor','pointer').click(function() {
window.location = href;
});
});
});
Note that I added cursor:pointer to make it behave like a link even without the href attribute. The very same technique is often used on mobile web sites to prevent mobile safari to drop down it’s address bar when navigating through ajax.
Another more clumsy way would be to add a placeholder div on top of the anchor that grabs the anchor’s href and navigates using window.location onclick.
Either way, a quick look in the source or in a console would reveal the destination anyway.
I think if you remove href attribute, and add onClick = "location('your url')" it will hide the href path. for example:
<script>
function changeLocation(url){
window.location.assign(url);
}
</script>
<a onClick = "changeLocation('http://www.w3schools.com')">Link</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With