Difference between `.click(handler())` and `.click(handler)`
<p>I have the following code.</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
 &lt;head&gt;
    &lt;script type="text/javascript" src="jquery-1.4.2.min.js" &gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    function myFun()
    {
        alert(5)
    }
        $(document).ready(function(){
            $("#myID").click(myFun());
        })
    &lt;/script&gt;
 &lt;/head&gt;

 &lt;body&gt;
  &lt;input type="button" value="Click it" id="myID" /&gt;
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>When I run this code then <code>alert(5)</code> is coming when the page loads. If I write</p>

<pre><code>$("#myID").click(myFun)
</code></pre>

<p>then the alert only appears when we click on the button. Why does it behave like this?</p>
