title: Populate html table onload from javascript
body: <p>I was following an example source code I found for populating a html table from javascript. 
  However there is a disconnect in my knowledge. The javascript is inside a populateTable function to find an element and create the other elements for the table and populate it from an array. </p>
  
  <p>I don't want this to be done from a button click but when the screen loads. </p>
  
  <p>So lets say...</p>
  
  <pre><code>&lt;h1&gt;Products&lt;/h1&gt;
  &lt;p&gt;List of products below:&lt;/p&gt;
  &lt;table&gt; &lt;--- how do I tell this table to be populated from my populateTable function
  &lt;/table&gt;
  </code></pre>
  
  <p>Any feedback is appreciated! </p>
  
  <p>EDIT: -  I'm clearly learning javascript :) Trying to do core javascript.</p>