title: ResolveUrl equivalent to load script without any server technology
body: <p>I need to take an ASP.NET web page and turn it into a plain HTML web page.</p>
  
  <p>I've done most of the work except for one thing: I couldn't find a way to replace the ASP.NET Page.ResolveUrl function when I set a reference to a javascript file:</p>
  
  <pre><code>&lt;script src="&lt;%= Page.ResolveUrl("~/Scripts/MyScript.js") %&gt;" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I know some users posted questions about a javascript equivalent for the ResolveUrl function but in my case, you have to keep in mind that the solution must be used to load the .js so any reference to a .js library could lead to a Chicken-and-egg problem.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>My web page and my script are included in a framework.  The web page can be deployed in a sub folder and that's the main reason I'm using the ResolveUrl function (and not an hardcoded path).</p>