title: How to simulate anchor link click
body: <p>I'm trying to trigger a link click for .jquery.  Does someone know why the following doesn't work.</p>
  
  <pre><code>&lt;!DOCTYPE  HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; 
  &lt;html lang="en"&gt; 
    &lt;head&gt; 
      &lt;title&gt;test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt; 
      &lt;div&gt;
         &lt;a id="google_link" href="http://google.com" target="_blank"&gt;click to go to google&lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="google_link_proxy"&gt;click here to do the same as the link above&lt;/div&gt;
  
      &lt;script type="text/javascript"&gt;      
       $("#google_link_proxy").click(function(event){
           $("#google_link").click();
       });
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>