jQuery add target="_blank" for outgoing link
<p>I need some help to create jquery script :)<br>
I have some of link like this on my HTML.</p>

<pre><code>&lt;a href="http://google.com"&gt;Google&lt;/a&gt;
&lt;a href="/"&gt;Home&lt;/a&gt;
&lt;a href="http://www.gusdecool.com/"&gt;Home&lt;/a&gt;
&lt;a href="contactus.html"&gt;Contact Us&lt;/a&gt;
</code></pre>

<p>And now i want jQuery to check all of the link on my page. if that link is outside of my server (my server is <code>gusdecool.com</code>). Then add <code>target="_blank"</code>. and the result will be like this  </p>

<pre><code>&lt;a href="http://google.com" target="_blank"&gt;Google&lt;/a&gt;
&lt;a href="/"&gt;Home&lt;/a&gt;
&lt;a href="http://www.gusdecool.com/"&gt;Home&lt;/a&gt;
&lt;a href="contactus.html"&gt;Contact Us&lt;/a&gt;
</code></pre>
