jQuery select all link but exclude the link inside an iframe
<p>Suppose I have many links inside the the body, and many links inside an iframe, something likes:</p>

<pre><code>&lt;div&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
...
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;/div&gt;
&lt;iframe src=xxx&gt;
&lt;html&gt;
&lt;head&gt;...&lt;/head&gt;
&lt;body&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
...
&lt;a herf=xxxxxxx&gt;...&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;/iframe&gt;
</code></pre>

<p>How can jQuery to select all link but exclude the link inside an iframe?</p>

<p>Thanks</p>
