Find all event listeners on a link, including delegated listeners?

M

Matt Kruse

I'm trying to reverse-engineer a page (Facebook, in particular) and
figure out what happens when a certain link is clicked. For this
exercise, I only care about Firefox.

What is the best way to find out what happens when I click a link,
what function calls are fired, and on what elements they are attached
to as listeners?

I have Firebug, of course, but perhaps I don't know how to use it
correctly to find this info.

Thanks,

Matt Kruse
 
J

Jeremy J Starcher

What is the best way to find out what happens when I click a link, what
function calls are fired, and on what elements they are attached to as
listeners?

May not get you everything, but as an idea try this:

Turn on profiling, click a button, then turn profiling back off.
 
N

nick

I'm trying to reverse-engineer a page (Facebook, in particular) and
figure out what happens when a certain link is clicked. For this
exercise, I only care about Firefox.

Give one of the dev builds of chromium a shot...
What is the best way to find out what happens when I click a link,
what function calls are fired, and on what elements they are attached
to as listeners?

Open the debug console, click scripts tab (in chromium, don't remember
firebug equivalent), hit the pause button (looks like two vertical
lines), click the link.
I have Firebug, of course, but perhaps I don't know how to use it
correctly to find this info.

Try the developer tools in chrome, you'll never look back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top