title: Uncaught ReferenceError: function is not defined at onload
body: <p>I am trying to use two different script tag in one html Page. 1st script tag I used the js file location o use the function and in other script tag I have written another function.</p>
  
  <p>in 2nd script there is  a function name CALCULATION which is called from the src file. but when I run the page it gives me <strong>Uncaught ReferenceError: ActiveProj is not defined at onload</strong> error</p>
  
  <pre><code>&lt;script  type="text/javascript" src="../../SiteAssets/calculation.js" /&gt;
  
  &lt;script type="text/javascript" &gt;
  function ActiveProj() { 
  var startdate = '05/11/2017';
  var endate = '08/15/2017';
  calculation(startdate,endate);
  }
  &lt;/script&gt;
  &lt;body onload="ActiveProj();"&gt;
  </code></pre>