[removed] simulate a click on a link

前端 未结 7 2034
耶瑟儿~
耶瑟儿~ 2020-12-20 21:39

I have a link that has a listener attached to it (I\'m using YUI):

YAHOO.util.Event.on(Element, \'click\', function(){ /* some functionality */});

7条回答
  •  眼角桃花
    2020-12-20 22:22

    In case anyone bumps into this looking for a framework agnostic way to fire any HTML and Mouse event, have a look here: How to simulate a mouse click using JavaScript?

提交回复
热议问题