title: Chrome and JS onclick function?
body: <p>I wanted to test chrome to see if it can show me what method will be running for <code>onclick</code> registered event.</p>
  <p>So I wanted to see which JS function execute shen people upvotes a  question :</p>
  <p><a href="https://i.stack.imgur.com/3mbce.jpg" rel="nofollow noreferrer">http://i.stack.imgur.com/3mbce.jpg</a></p>
  <p><img src="https://i.stack.imgur.com/3mbce.jpg" alt="enter image description here" /></p>
  <p>But I couldn't found the actual code.</p>
  <p>is it possible with chrome to find which JS executes when &quot;onclick&quot;?</p>
  <h1>edit</h1>
  <p>I could use the console to do it with :</p>
  <pre><code>$.each($(&quot;.vote-up-off&quot;).data(&quot;events&quot;), function(i, e) {  // this will work till jq 1.8
    console.log(this)
  });
  </code></pre>
  <p>and  here  is  our friend:</p>
  <p><img src="https://i.stack.imgur.com/Ewgyu.jpg" alt="enter image description here" /></p>
  <p>But <strong>hey</strong> ! , I want chrome to do the work :-)</p>