title: How to call a javaScript Function in jsp on page load without using <body onload="disableView()">
body: <p>How can a JavaScript function in JSP be called during page load without using</p>
  
  <pre><code>&lt;body onload="disableView()"&gt;
  </code></pre>
  
  <p>I have to call this function in a few JSP's on page load but JSP's are divided into header, footer and pageContent sections and the body tag droped into header section and it has to be in header section only. So in some of the pages I have to call JavaScript function on page reload/load in pageContent section where I won't get <code>&lt;body&gt;</code> tag to put the <code>onload</code> in. How can I solve this?</p>