title: How to add event listener for checkbox in Chrome extension's popup?
body: <p>I'm trying to capture changes of <code>checkbox</code> in popup of my Chrome Extension. Documentation <a href="http://code.google.com/chrome/extensions/trunk/contentSecurityPolicy.html#H3-1">says</a>:</p>
  
  <blockquote>
    <p>Inline JavaScript will not be executed</p>
  </blockquote>
  
  <p>There is an example provided on the same page, but it for <code>button</code>. I don't know how to modify it so it would capture chekbox's state changes.</p>
  
  <pre><code>document.addEventListener('DOMContentLoaded', function () {
        document.querySelector('button').addEventListener('click', clickHandler);
  });
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tiIRb.png" alt="Example"></p>