setTimeout in javascript executing timeout code right away and not waiting : <p>I have the following line in my javascript code</p>

<pre><code>setTimeout(reload(), 30000);
</code></pre>

<p>Which I expect to wait 30 seconds then call the reload function. </p>

<p>The issue is that the reload function is being called right away and not waiting for the timeout, why is the <code>setTimeout</code> calling the reload function right away and not waiting the specified amount of time? The <code>setTimeout</code> call is also being done in an <code>onloadend</code> <code>FileReader</code> function if that would make any difference.</p>
