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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -