title: multiple external javascript files- how to call function
body: <p>I have multiple external javascript files linked to my html page and want to call a function in one of them. Right now I'm doing onClick = "func()", but it's not calling the function. I'm trying to figure out the problem.....Do I need to specify which script the function is in? If so, how do I do that?
  Thanks.</p>
  
  <p>Here is code:</p>
  
  <pre><code>&lt;script type="text/javascript" src="file1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="file2.js"&gt;&lt;/script&gt;
  ...
  
  &lt;li id="tab"&gt;&lt;span onClick = "get_code('tabOne')"&gt;Tab&lt;/span&gt;&lt;/li&gt;
  ...
  </code></pre>
  
  <p>In file1.js:</p>
  
  <pre><code>function get_code(str)
  {
      alert(str);
  }
  </code></pre>