title: Simulate click with setTimeout in Javascript
body: <p>How would I simulate a click event with setTimeout? Something like:</p>
  
  <pre><code>&lt;script&gt;
      window.onload=setTimeout(document.getElementById('mk1').click(),1000);
  &lt;/script&gt;
  
  &lt;a id="mk1" href="some url"&gt;click me&lt;/a&gt;
  </code></pre>