How can I hide URL from displaying when mouse hovers on a hyperlink?
<a href="url">Hyperlink</a>
How can I hide URL from displaying in browser's bottom status bar when mouse hovers?
How can I hide URL from displaying when mouse hovers on a hyperlink?
<a href="url">Hyperlink</a>
How can I hide URL from displaying in browser's bottom status bar when mouse hovers?
Don't put the URL in the
href
(or keep ithref="#"
) and attach a JavaScript function to theonclick
event which puts the actual link in thea
element. This way you won't see the actual URL when hovering over the link but the link will be inserted when the user actually clicks.you technically have
window.status
to make custom status bar messages. you can set it during an "onmouseover" event for that element and set thewindow.status
to a blank string.. thats how we did it a long time ago however..browsers these days prevent the modification of the status bar by default (as far as i know, firefox prevents it). so there is no guarantees as to this approach will do anything at all.
This way you can easily hide url when mouse hover on hyperlink.
Simply add one id on anchor link.
HTML
Jquery code
Here is demo link https://jsfiddle.net/vipul09so/Lcryjga5/
Just use onclick="location.href='#'"