title: Click on HTML5 canvas
body: <p>I want to simulate clicks on a canvas with javascript\jQuery for testing reasons, but I didn't find a solution. Here's my code:</p>
  
  <pre><code>var e = new jQuery.Event("click");
              e.pageX = X[index];
              e.pageY = Y[index];
              $("#gamecanvas").trigger(e);
  </code></pre>
  
  <p>Is it possible to do that ?</p>
  
  <p>For example this <a href="http://corehtml5canvas.com/code-live/ch07/example-7.3/example.html" rel="nofollow noreferrer">game</a> (I searched randomly on the web)   How can I click from JS\jQuery ?</p>