title: setTimeout continously running the function its in?
body: <p>So I have a function which is called from an <code>onload</code> event:</p>
  
  <pre><code>var called = 0;
  
  function getAll()
  {
     var msg = "hello everyone";
     alert("hi");
     setTimeout(startTimerRepeat, 5000, msg);
  }
  
  function startTimerRepeat(content)
  {
     document.getElementById('howmanyLbl').innerText = "Called " + called + " times, " + msg;
  }
  </code></pre>
  
  <p>I expected the <code>startTimerRepeat()</code> function to be called every 5 seconds, it does. However it seems the <code>getAll()</code> function is also executing every 5 seconds as an alert with "hi" continously appears every 5 seconds.</p>
  
  <p>Does anyone understand what I am doing wrong here?</p>