javascript - Chrome Developer Tools : How to know the event triggered when click a element? -
when i'm in website, how can use chrome developer tools find out js function called when click on element ?
for instance, i'm on website has div element. when click on div, actions. want know js function these actions, able call js function programatically in console, without need manually click on div.
thanks !
all event listeners element shown in event listeners panel. if expand 'click' event section you'll see scripts @ play.
once you've found script, expand object see function names (except, of course, anonymous functions) , other properties.
Comments
Post a Comment