SyntaxFix
Write A Post
Hire A Developer
Questions
To get all eventListeners on a page printed alongside their elements
Array.from(document.querySelectorAll("*")).forEach(e => { const ev = getEventListeners(e) if (Object.keys(ev).length !== 0) console.log(e, ev) })