not able to open links in a new tab
<p>I need to verify a lot of links on a page. Rather than opening each link myself. This is what I did. </p>

<p>jquerified the page using firequery plugin. Then I typed following code in firebug.</p>

<pre><code>a = $('a');
$.each(a, function(i,val){
  $val = $(val);
  $val.attr({target: '_blank'});
  $val.trigger('click');
});
</code></pre>

<p>Even though I am trigger click the links were not clicked. Why?</p>
