Google Chrome has a feature where you can run monitorEvents(document)
and every event you fired will be logged in the console.
How can I get similar functionality in FireFox?
I came across this very outdated answer, but Firebug doesn't even exist anymore: Using Firefox, how can I monitor all JavaScript events that are fired?
You can try this
function monitorEvents(element) {
var log = function(e) { console.log(e);};
var events = [];
for(var i in element) {
if(i.startsWith("on")) events.push(i.substr(2));
}
events.forEach(function(eventName) {
element.addEventListener(eventName, log);
});
}
Source --- https://paul.kinlan.me/monitoring-all-events-on-an-element/
Or if you want to monitor events on a specific DOM element(s) you can try this --- Examine Event Listeners on MDN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With