Can i use resolveurl in javascript
<pre><code> &lt;script language="javascript" type="text/javascript"&gt;
                                                   banner2.add("FLASH", "../Banners/1.swf", 10, 60, 468,"http://www.techpint.com","_blank");
                        banner2.add("FLASH", "../Banners/2.swf", 10, 60, 468,"http://www.tapasya.co.in","_blank");

                    &lt;/script&gt;
</code></pre>

<p>now here i want to get the base url of the site so that i can give path to my flash file in all pages.
this script is a part of my master page.
can i run " &lt;%= ResolveUrl("~/Banners/1.swf") %> " in javascript.</p>

<pre><code>banner2.add("FLASH"," &lt;%= ResolveUrl("~/Banners/1.swf") %&gt; ", 10, 60, 468,"http://www.techpint.com","_blank");
</code></pre>
