How to run java script code before page load?
<p>I have working in asp.net web application. Here I need to run javascript before page load.</p>

<p>I have gone through </p>

<pre><code>&lt;body oninit="funinit();" onprerender="funRender();" onload="funload();"&gt;


&lt;/body&gt;

 &lt;script type="text/javascript" language="javascript"&gt;
    function funinit() {
        alert("funinit");
    }
    function funload() {
        alert("funload");
    }
    function funRender() {
        alert("funRender");
    }      

&lt;/script&gt;
</code></pre>

<p>here only funload() is working.
plz give me any solution to run script before page load.</p>
