title: Calling js function in external js file
body: <p>I'm trying to call a simple function with alert but it wont work when i try call the function (contained in an external js file) from my html page.</p>
  
  <p>I have a import and the call is very simple. Any suggestions?</p>
  
  <pre><code>    &lt;head&gt;
  &lt;script src="/js/jsFunctions.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In my code I call</p>
  
  <pre><code>&lt;a href="javascript:displayAlertText('someText');"&gt;
  </code></pre>
  
  <p>Inside the js I have some jquery followed by a function</p>
  
  <pre><code>function displayAlertText(someText)
      {
          alert('alert' + someText);
      }
  </code></pre>