How do I hide links on the browser status bar when I hover over links on a web page?

I use Zend, PHP, AJAX, JQuery in my projects. The question is, how can I make it not to display the link to the browser status bar when I hover over the link on my web page.

The best example on this site is when you hover over the vote on this site, it does not show the link and after the click of the vote has increased without refreshing the page.

thank

+3
source share
4 answers

, (.. ). , onclick.

JavaScript , window.status = ""; .

, ...

[Html]
<img id="clickme" src="myimage.png" alt="My Image" title="Vote">

[JavaScript (jQuery)]
$("#clickme").click(function() { alert("You clicked me"); });
+7

- window.status = "";, , .

.

, - , , <a> - href, .

HTML SO, , "" - , javascript, onclick.

, ""? - CSS cursor.

.vote img {
    cursor:pointer;
}

CSS all.css.

+7

, <a> href.

JavaScript href, .

+3
0

Source: https://habr.com/ru/post/1731550/


All Articles