saroj saroj - 1 month ago 5
HTML Question

how can url be hidden in hyperlink when mouse hover

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?

Answer

Don't put the URL in the href (or keep it href="#") and attach a JavaScript function to the onclick event which puts the actual link in the a 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.

Comments