最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - how to get clicked a href link on mouseover? - Stack Overflow

programmeradmin0浏览0评论

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>
发布评论

评论列表(0)

  1. 暂无评论