How can I track/trace back to (or capture) the actual coding of "invisible" JavaScript functionality?
On a number of websites, I'll often find a button that does something, like submit a message, but when I hover the mouse over the button, there is either no link attached, or just a "#" left as the link.
Looking in the page's code, there usually isn't any surrounding Javascript near the location of the element that would give it its functionality.
How does one both trace what's actually happening when the button is clicked, and track to the source of where this functionality is implemented in the code? Surely, there must be a quicker, more effective way than manually searching all the code and external Javascript files for any specific reference to the element (like the button)...?
(For reference, I'm using Firefox w/ Firebug)