title: How do click specific coordinates?
body: <p>I need to use jQuery (or anything) that clicked specific coordinates after button is clicked.
  <img src="https://i.stack.imgur.com/b7zAG.png" alt="specific coordinates"></p>
  
  <p>Here is my code, but It not working. As you see in picture in these coordinates (10,15) is red button, which should be clicked.</p>
  
  <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      $(function(){
          $("#filter").click(function(e){
               //If I add alert here It successfully print message.
               var e = new jQuery.Event("click");
                  e.pageX = 10;
                  e.pageY = 15;
                  $("#elem").trigger(e);
          });
      });
      &lt;/script&gt;
  
  &lt;input type="button" id="filter" name="filter" value="Filter" /&gt;
  </code></pre>
  
  <p>I've read this, but wont help: <a href="https://stackoverflow.com/questions/2845178/triggering-a-javascript-click-event-at-specific-coordinates">Triggering a JavaScript click() event at specific coordinates</a></p>