add .js file as source in html file from server
<p>I have an HTML file on my server, and a Javascript file on the same server.  I want it so that when I load the HTML file, it will the reference of .js file placed on the server.</p>

<p>I tried this way:</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;script type="text/javascript src="...server side path...."&gt;&lt;/script&gt;
    &lt;/head&gt;
&lt;/html&gt;
</code></pre>

<p>but it is not working.  Can any one tell me how I can do this?! I attached the code</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:form="http://www.w3.org/2002/xforms" xml:lang="en"&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="~/FormFaces/formfaces.js"&gt;&lt;/script&gt;
&lt;form:model&gt;
&lt;form:instance&gt;
    &lt;data xmlns=""&gt;
&lt;textbox1&gt;&lt;/textbox1&gt;
&lt;textbox2&gt;&lt;/textbox2&gt;
&lt;textbox3&gt;&lt;/textbox3&gt;
    &lt;/data&gt;
&lt;/form:instance&gt;
&lt;/form:model&gt;
&lt;/head&gt;


&lt;body&gt;
&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;form:input ref="textbox1"&gt;
&lt;form:label&gt;TextBox1&lt;/form:label&gt;
&lt;/form:input&gt;
&lt;/td&gt;&lt;td&gt;&lt;form:input ref="textbox2"&gt;
&lt;form:label&gt;TextBox2&lt;/form:label&gt;
&lt;/form:input&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;form:input ref="textbox3"&gt;
&lt;form:label&gt;TextBox3&lt;/form:label&gt;
&lt;/form:input&gt;
&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>` I want the formfaces.js file to be included in my Text.html file. But when i run the text.html file through my local server in a browser, it doesnot load the formfaces.js file. IF i run that file manually , all works fine</p>
