Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 761
saroj Avatar asked Mar 24 '12 11:03

saroj


People also ask

What happens when you hover over a hyperlink?

An embedded hyperlink is when you see text that may appear legitimate, rather than the actual URL. On your computer, by hovering (not clicking) your mouse over these links, you can see the hidden URL and verify its legitimacy.

How do you make a URL invisible?

Use CSS styling to make your links invisible The first way is by using none as the pointer-events CSS property value. The other is by simply coloring the text to match the background of the page. Neither method hides the link if someone inspects the HTML source code.

When you hover a mouse on a link?

Alternatively referred to as mouseover or mouse hover, hover describes the act of moving a mouse pointer over a clickable object, but not actually clicking the left or right mouse button. For example, when you hover your mouse over any of the links on this page, they should change color, indicating they can be clicked.

How do you make text appear when hovering over a link?

We now have our link. to add mouseover text, just use the "title" attribute, like so: <a href=" " title="This is some text I want to display. ">This link has mouseover text.


1 Answers

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.

like image 164
Simeon Visser Avatar answered Oct 08 '22 06:10

Simeon Visser