Computer >> Computer tutorials >  >> Programming >> Javascript

How do I view events fired on an element in Chrome?


To view events fired on an element, follow the below steps in Google Chrome:

Open Google Chrome and press F12 to open Dev Tools.

Now go to Sources Tab

How do I view events fired on an element in Chrome?

Go to Event Listener Breakpoints, on the right:

How do I view events fired on an element in Chrome?

Click on the events and interact with the target element.
If the event will fire, then you will get a breakpoint in the debugger.