title: Find code that assigns onclick event to node
body: <p>I'm trying to debug a webpage that I didn't write.  There's a button which runs a JavaScript command when I click on it, but I can't figure out where the JavaScript code is that contains the .onClick or .click command which assigned that function to the click event.  Here is the code for the button:</p>
  
  <pre><code>&lt;li&gt;&lt;a href="#top" class="page-link btn-custom btn-sign-up-bottom"&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I know that I can use the Chrome dev tools and look under the elements tab->Event Listeners->click to show what function runs when I click it, but I want to find the line of code where the listener is set up.  It's tricky because the listener could have been assigned using any of the three classes that the button is part of, or it could be that all links were assigned this onClick.  I suspect I'll have to do this a lot, so I hope there's an efficient solution.</p>