How do I exclude elements that have a "target" defined (for opening external links in new windows)?
<p>I'm not sure if this script is working properly. I do not want to overwrite existing targets. How can I adjust this to exclude links that already have a target defined?</p>

<pre><code>$("a[@href^='http://']").not("[@href*='" + window.location.host + "']").attr('target','_blank');
</code></pre>
