title: Simulate click on link with jquery
body: <p>I want to simulate a click on a link using javascript but it doesn't work. 
  The target is _blank, so it will open in other chrome tab (window.open() doesn't have the exatly same behaviour).</p>
  
  <pre><code>&lt;input type="button" value="Test" onclick="openLink()" /&gt;
  &lt;a href="./mypage.html" target="_blank" id="linkId"&gt;my link&lt;/a&gt;
  
  &lt;script type="text/javascript" charset="utf-8"&gt;
  
      function openLink(){
          var link = $("#linkId");
          link.click();
      }
  &lt;/script&gt;
  </code></pre>