title: Not able to access external Jscript File even after referencing?
body: <p>I'm a beginner trying my first program to add external jscript file in scr attribute of script tag, followed all steps as I searched but it's not working the way it should. Can someone please help me with this?</p>
  
  <ol>
  <li>I have one aspx form, and one button onclick calling internal javascript function.
  I also have one button onclick calling external .js file function.</li>
  </ol>
  
  <p>This is my aspx code</p>
  
  <pre><code>&lt;head runat="server"&gt;
  &lt;script type="text/javascript" language="javascript" src="ExternalJScript.js"&gt;
  function Myfunction()
  {
      document.getElementById("htmlbutton").innerHTML = "This is Button from Javascript            function";
      alert("Hi Function Called from Javascript");   
  }
  &lt;/script&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
      &lt;button type="button" id="htmlbutton" onclick="Myfunction()"&gt;This is html button&lt;/button&gt;&lt;br /&gt;
      &lt;button type="button" id="Button1" onclick="ExternalJSFileFunction()" value="Call File"&gt;HI&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this is my .js code</p>
  
  <pre><code>ExternalJSFileFunction()
  {
      alert("I m from external file");
  }
  </code></pre>