title: How to call a JavaScript function in HTML on load
body: <p>JavaScript code I am trying to get to call from the HTML.</p>
  
  <pre><code>var ClassList = new Array ["Bio1300","csci12"];
  
  function ClassMenu(ClassList) {
    return (ClassList.toString);
  };
  </code></pre>
  
  <p>This is the HTML code I am trying to call the JavaScript function inside of on the load of the page. </p>
  
  <pre><code>&lt;li&gt;
    &lt;script type="text/javascript" src="JavaScript InProg.js"&gt;
      function ClassMenu() {
        console.log(ClassList.toString);
      }
    &lt;/script&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Please help. I have many other functions I am trying to call in this manner that are both arrays and contain mathematical calculations. </p>