Event Listener Viewer Bookmarklet
List inline and property event handlers (onclick, oncontextmenu and more) on any page, jump to each element, and get a DevTools snippet for the rest. Free.
On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.
Event Listener Viewer lists the event handlers a page script can actually see: inline attributes such as onclick="..." or oncontextmenu="return false", and handler properties assigned in JavaScript like button.onclick = fn. It checks every element plus window and document, shows the event name, where the handler came from and a preview of its code, and lets you click a row to scroll to and flash the element.
We are honest about what no bookmarklet can do: listeners added with addEventListener(), which is how most modern frameworks attach events, are not exposed to page JavaScript. Only DevTools can see them through its getEventListeners() helper. So the panel includes a one-click copy of a DevTools console snippet that lists every element with listeners, and on jQuery sites it also reads jQuery's own event registry.
It is great for spotting copy and right-click blockers, legacy inline scripts and Content Security Policy problems.
What it does
- Finds inline
on*attributes andon*handler properties on every element,windowanddocument - Shows event, element selector, source (attribute or property) and a code preview
- Click a row to scroll to the element and highlight it briefly
- Reads jQuery-bound events via
jQuery._data()when jQuery is present - Copies a DevTools console snippet that lists
addEventListenerlisteners, which page scripts cannot see
How to install the Event Listener Viewer bookmarklet
- Show your bookmarks bar. Press
Ctrl+Shift+Bon Windows/Linux orCmd+Shift+Bon a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar. - Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
- Open any website and click the bookmark to run it on that page. Click it again to close it.
Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.
How to use it
- Open the page and click Event Listener Viewer.
- Review the table; summary pills show which event types appear most.
- Click a row to jump to that element on the page.
- For listeners added with addEventListener, press Copy DevTools snippet, open DevTools (F12) and paste it into the Console.
Why the list may look short
React, Vue, Angular and most libraries attach events with addEventListener or a single delegated listener on the root, so a modern app can show almost nothing here even though it is full of interactivity. That is a browser limitation, not a missing feature. The DevTools snippet uses getEventListeners(), which only exists inside the DevTools console, and prints each element with its listeners. Inline handlers are also a signal for security reviews: a strict Content Security Policy without unsafe-inline blocks them.
Bookmarklet code
This is the exact code inside the button above (8,332 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.
Frequently asked questions
Why doesn't it show listeners added with addEventListener?
Browsers do not give page scripts a way to read those listeners. Only DevTools can, via getEventListeners(), which is why the panel offers a snippet for the console.
Does it detect right-click blockers?
Yes, when they are inline attributes or properties such as oncontextmenu. To remove them, use Enable Right Click.
Does it work with jQuery?
Yes. If jQuery is loaded, events bound with .on() are read from jQuery's internal registry and listed too.
Related bookmarklets
Re-enable right-click, text selection, copy and paste on pages that block them. One click removes the blockers, a second…
Hover any element to see its tag, ID and CSS classes, then click to copy a unique CSS selector. A free bookmarklet for…
Count DOM elements, nodes and nesting depth on any page, with a sortable per-tag table and Lighthouse DOM-size…
See the cookies a page can read in a clean table: name, decoded value, size and JWT payloads, with copy buttons. Free…