Will an error in an external javascript from a separate domain break the javascript on my site/domain?
<p>My concern is my site pulls in ads dynamically from several differnt ad vendors. So say there is an ad from the third party's javascript on a separate domain, could that then break the javascript on my site/domain? I believe that javascript is encapsulated by domain but just wanted to make sure.</p>

<pre><code>http://mysite.com
&lt;script type="text\javascript" src="foo.com"&gt;
cause some error...
&lt;/script&gt;
&lt;script type="text\javascript" src="http://www.mysite.com/js/fooscript.js"&gt;
document.write("write something")
&lt;/script&gt;
&lt;script type="text\javascript" src="http://www.mysite.com/js/fooscript.js"&gt;
cause some other error...
&lt;/script&gt;
&lt;script type="text\javascript" src="http://www.mysite.com/js/fooscript.js"&gt;
document.write("write something else")
&lt;/script&gt;
</code></pre>
