title: Fire Click event in A-tag
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1694595/can-i-call-jquery-click-to-follow-an-a-link-if-i-havent-bound-an-event-hand">Can I call jquery click() to follow an &lt;a&gt; link if I haven’t bound an event handler to it with bind or click already?</a>  </p>
  </blockquote>
  
  
  
  <p>I wrote the following code.</p>
  
  <pre><code>&lt;div style="background-color:orange"&gt;Click me to open the link
      &lt;br&gt;
      &lt;a target="_blank" href="http://example.com"&gt;Link&lt;/a&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      jQuery('div').click(function(){
          jQuery('a').click();
      });
  
      jQuery('a').click(function(e){
         alert('It came here!');           
         e.stopPropagation();
         return true;   
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But the link is not opening.</p>
  
  <p>UPDATE: added target attribute to A-tag.</p>