title: Using jQuery to simulate mouseclick on coordinates
body: <p>I am trying to simulate a mouse click that draws something on a canvas at a specific point on load. I was looking at this post, <a href="https://stackoverflow.com/questions/15639692/javascript-draw-a-circle-on-mouse-click-cordinates-dont-match">JavaScript draw a circle on mouse click - cordinates don&#39;t match</a>, and am experimenting on the JS Fiddle provided here: <a href="http://jsfiddle.net/7xQZ2/22/" rel="nofollow noreferrer">http://jsfiddle.net/7xQZ2/22/</a></p>
  
  <p>The original JS Fiddle draws circles when you click on the canvas. Would it be possible to simulate this click on load? For example, so that when the page loads, there appears a circle at (200, 200)? </p>
  
  <pre><code>function simulateClick(x, y) {
      $(document.elementFromPoint(x, y)).trigger('click')
   }
  simulateClick(200, 200)
  </code></pre>
  
  <p>Thanks in advance!</p>