Reputation: 557
how to get clicked a href link on mouseover?
i want to get clicked my link on mouseover
what i have to do to make my link get clicked on mouseover
this is my code:
<a href="www.example.com">link</a>
Upvotes: 1
Views: 15770
Reputation: 55
Jquery or Style attribute
<a href="" onmouseover="$(this).click()" >Click Me</a>
<a href="" onmouseover="this.style.cursor='pointer';">Click Me</a>
Upvotes: 0
Reputation: 148
You can use jquery for achieving this manipulation
$('a').mouseover(function(){
$(this).click();
});
Upvotes: 0
Reputation: 719
try something like :
<a onmouseover="this.click();" href="...">link</a>
Upvotes: 3