How to call a JavaScript function on page load
<p>How can I call a JavaScript function on page load without making</p>

<pre><code> &lt;body onload='callFunction()'&gt;
</code></pre>

<p>i want to check when loading the page what is the purpose of using that page, 
if for addition then ok , if for edition , there will be data come from server to be displayed in that page, so i want to check the request each time page is loaded , since i don't have body tag in my page cz i use jspf (JSP Fragment) . 
NOTE : i don't know jQuerry , is there's another way?</p>
