jQuery switch statement(?)
<p>I am trying to figure out how to write a "switch statement" so if one particular (let's call it 'yourdomain.com') external URL matches it does not open in a new window, the rest will. Can someone lend a hand in teaching me?</p>

<pre><code>jQuery(function ($) {
    $('a[href^="http://"]')
        .not('[href*="http://mydomain.com"]')
        .attr('target', '_blank');
</code></pre>

<p>e.g.</p>

<p>mydomain.com = this will not open a new window because it's my URL</p>

<p>yourdomain.com = this particular URL will not open in a new window even though it's an external URL</p>

<p>anyotherdomain.com = every other external URL besides the one above will open in a new window</p>
