title: What's the difference between .click() and .onclick() in javascript?
body: <p>What's the difference between</p>
  
  <pre><code>document.getElementById("id").click();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>document.getElementById("id").onclick();
  </code></pre>
  
  <p>?</p>