title: How to dispatch a double click event on an element?
body: <p>I can dispatch a simple click event (without any optional parameters) with:</p>
  
  <pre><code>var clickEvt = document.createEvent("MouseEvents");
  clickEvt.initEvent("click");
  element.dispatchEvent(clickEvt);
  </code></pre>
  
  <p>But how do I dispatch a double-click event?</p>