title: How can I see the event that is attached to an html element?
body: <p>Hello I am a new programmer and still learning. 
  This is the code that I am trying to figure out:</p>
  
  <pre><code>&lt;div id="buy" class="buy button"&gt;Buy&lt;/div&gt;
  </code></pre>
  
  <p>When I click on the div (button), some javascript code is executed but I don't know were it is. How can I tell what function is fired when click happens? Some how a listener is attached to this element</p>