title: Javascript: window.setTimeout( ) not working
body: <p>I feel like this must be very simple, but for some reason I am getting no results from this:</p>
  
  <pre><code>&lt;script&gt;
  function sendAlert() {
      alert('hello world');
  }
  var timer = window.setTimeout(sendAlert, 2000);
  &lt;/script&gt;
  </code></pre>
  
  <p>Should this not be counting 2000ms and then calling <code>sendAlert()</code>? Have I understood this wrong? I have also tried this outside of a variable (ie. <code>window.setTimeout()</code> not declared as <code>var timer</code>) and had no result either. This seems so easy, what am I doing wrong!?</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>I'm an idiot. I had script tags with bad links to javascript documents in the header of my doc, breaking javascript in general on the page. Thanks internet. ;p</p>