title: use function from html script
body: <p>I'm perplex. I think I know what's wrong, but I can not seem to figure out what the correction is. </p>
  
  <p>I have several external URL scripts, that load in the HTML file, via <code>&lt;script type="text/javascript src="https://the/path/root.js"&gt;&lt;/script&gt;</code></p>
  
  <p>This should make the all the function contained WITHIN that root.js available to ALL the files listed in the <code>&lt;head&gt;</code> or only the html. </p>
  
  <p>so if I'm a myFile.js and I make a function call that's within root.js it does nothing. and nothing is executed. </p>
  
  <p>so myFile.html </p>
  
  <pre><code>&lt;head&gt;
      &lt;script type="text/javascript&gt; src="https://some/path/name/root.js&gt;
      &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>and myJS.js</p>
  
  <pre><code>function root();(which is not declared or defined in the myJS.js file, but is located in the root.js file of the URL).
  </code></pre>
  
  <p>How do I reference it? can I take the script right out, and put it directly into the myJS.js, are there scripts that are HTML dependendent? </p>
  
  <p>its for a school assignment. If anyone can help out...really appreciate it. </p>
  
  <p>Also, if I'm in the HTML, and I want to load functions from that JS file, i tried <code>&lt;body onload="root();"&gt;</code> but it didn't work.</p>
  
  <p>Any ideas?</p>