DEV Community

Maciek Chmura
Maciek Chmura

Posted on • Originally published at maciek.cloud

Check events fired while interacting with a DOM element

There is an easy way of monitoring all events fired while interacting with a DOM element.

Open dev tools and select element.

Alt Text

While the element is selected, switch to console and type: monitorEvents($0)

Alt Text

Interact with the element: hover, click, etc.
The console should print all the events fired.

Alt Text

Top comments (0)