[Dev Tools] Log all events fired on an element

PHOTO EMBED

Tue Feb 28 2023 04:55:16 GMT+0000 (Coordinated Universal Time)

Saved by @wwwonka #javascript

// In the Dev Tools console, paste this:

monitorEvents($0); // $0 refers to the last element selected

// For a specific element, and optionally an event type:
monitorEvents(document.body, 'mouse')

// To cancel:
unmonitorEvents($0)
content_copyCOPY

https://stackoverflow.com/questions/10213703/how-do-i-view-events-fired-on-an-element-in-chrome-devtools