[jQuery] Auto click event on an <A>

[jQuery] Auto click event on an <A>

<span style="font-family: trebuchet ms,sans-serif;">Sample page</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"><a href="http://www.commadot.com/jquery/clickEvent.php"> http://www.commadot.com/jquery/clickEvent.php</a></span><br style="font-family: trebuchet ms,sans-serif;">
<br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: courier new,monospace;">$(document).ready(function(){</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  $("a").click(function () {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">      $("div").css("background-color","yellow");</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">      return true;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  });</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    $("a.test").click();</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">});</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">I want to simulate a click event on the link.</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">How come the box turns yellow but the window doesn't open?</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">Glen</span><br style="font-family: trebuchet ms,sans-serif;">