Alert message onfocus
<p>I don't get it. Why does this alert on page load? How to make it alert only "onfocus"?</p>

<pre><code>&lt;input id="mail" name="E-post" value="E-post"&gt;
&lt;script&gt;
window.onload = function () {
    function onfocusFunction() {
        alert('Why!?');
    }
    var myMail = document.getElementById('mail');
    myMail.onfocus = onfocusFunction();
}
&lt;/script&gt;
</code></pre>
