title: attaching 2 javascript files and only one is running
body: <p>I have attached 2 Javascript files into my html.
  when i attached the second, the first one stopped working. (when i detach the second, the first file is working fine)</p>
  
  <p>i think the reason is that both of those javascript files contain </p>
  
  <pre><code>window.onload=function() {
  // do stuff
  }
  </code></pre>
  
  <p>is there a reason for something like that?  i work it out?</p>
  
  <p><strong>the attaching on the html file look like this:</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;script src="CyclingImage.js"&gt;&lt;/script&gt;
      &lt;script src="blackbar.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  //stuff
  &lt;/body&gt;
  </code></pre>