title: javascript timeout/sleep using setTimeout()
body: <p>How can I set a 2 second timeout to wait for page controls to be populated? I want to use javascript I have tried the following but to no avail:</p>
  
  <pre><code>setTimeout(function(){},2000);
  
  setTimeout(2000);
  </code></pre>
  
  <p>Anyone able to provide a pointer?</p>