admin管理员组

文章数量:1335122

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">link</a>

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.">link</a>

Share Improve this question asked May 2, 2013 at 11:36 user2033281user2033281 5573 gold badges7 silver badges15 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

try something like :

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

You can use jquery for achieving this manipulation

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

Jquery or Style attribute

    <a href="" onmouseover="$(this).click()" >Click Me</a> 
    <a href="" onmouseover="this.style.cursor='pointer';">Click Me</a>

本文标签: javascripthow to get clicked a href link on mouseoverStack Overflow