title: Check all Checkboxes in Page via Developer Tools
body: <p>I have a loop that creates 20 <strong><em>check-boxes</em></strong> in the same page (it creates different forms). I want via <strong><em>chrome developer tools</em></strong> to run a JavaScript without the use of any library that <strong><em>CHECK</em></strong> all <em>check-boxes</em> at the same time.</p>
  
  <h2>This is as far as I got:</h2>
  
  <pre><code>function() {
      var aa= document.getElementsByTagName("input");
      for (var i =0; i &lt; aa.length; i++){
       aa.elements[i].checked = checked;
      }
  }
  </code></pre>
  
  <p>PS: I have searched and found a lot of Questions in Stack-Overflow but none worked for me, I'll be glad if someone could find me the correct answer.</p>