Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to find JavaScript events that are tied to a specific piece of HTML?

I'm working with someone else's code, and I want to be able to see what JavaScript they have tied to a particular button on the page. Is there some way to watch what code is being fired off by clicking the button in FireBug or something?

like image 891
Trey Piepmeier Avatar asked Dec 29 '22 22:12

Trey Piepmeier


1 Answers

Give Visual Event a try. It's a bookmarklet that will highlight all Elements in a page with events bound to them and will give you a nice little readout on what's bound to each Element.

like image 121
ajm Avatar answered Jan 13 '23 17:01

ajm