user2033281
user2033281

Reputation: 557

how to get clicked a href link on mouseover?

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

Answers (3)

Vedpathi
Vedpathi

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

SrikanthManian
SrikanthManian

Reputation: 148

You can use jquery for achieving this manipulation

  $('a').mouseover(function(){
      $(this).click();
  });

Upvotes: 0

nicolas
nicolas

Reputation: 719

try something like :

<a onmouseover="this.click();" href="...">link</a>

Upvotes: 3

Related Questions