How JS file can be download programatically
<p>most of the time we include script tag in html head tag. like</p>

<pre><code> &lt;Head&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
</code></pre>

<p>i want that i dont want to include js file path rather i need to download js programatically by jquery. like i will download js file programatically from <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js</a> and check if the file can not be download or does not exist then i will download the same file from my site like www.my-site.com/js/1.5.2/jquery.min.js.</p>

<p>please help me to do it using jquery.</p>
