title: setInterval() in my greasemonkey script ignores the time given and constantly executes
body: <p>I have experience with programming but I am new to greasemonkey and javascript. I am made a simple greasemonkey script that reloads a page every 10 seconds. The reload works, but the pause does not so the page reloads over and over again.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>// ==UserScript==
  // @name           my script
  // @namespace      http://example.com
  // @include        http://*.example.com/page.html*
  // ==/UserScript==
  
  
  
  var i = setInterval(pageReload(),10000);
  
  function pageReload() {
      window.location.reload();
  }
  </code></pre>
  
  <p>I've tried this with the setTimeout() function and it has the same effect as above. Ditto with throwing a wait(10000) in many different places.</p>
  
  <p>I am using firefox 10.0.2 and I got greasemonkey yesterday so it's the latest version.</p>
  
  <p>One oddity I did notice after a lot of lookup is that the setInterval() syntax has the function name (parameter 1) in quotes, like this:</p>
  
  <pre><code>var i = setInterval("pageReload()",10000);
  </code></pre>
  
  <p>This causes the script to do nothing. Without the quotes, it runs but not properly.</p>
  
  <p>Pre-emptive: I have deleted and reinstalled the script.</p>