when the page was loaded any times
<p>I want when the page was loaded 10 times</p>

<pre><code>alert ('hello !!');
</code></pre>

<p>how to get it ?</p>

<p>Here is my code : </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;my problem !!&lt;/title&gt;
    &lt;script type="text/javascript"&gt;
    var i = 0;
    myfunc = function () {
        if (i++ == 10){
            alert ('hello !!');
        }
    }
    window.onload = myfunc;
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanks for you help :x</p>
