title: will HTML <body> onLoad events overwrite javascript window onload event?
body: <p>I have a HTML page and a javascript function is attached to the <code>&lt;body&gt;</code> onLoad event. </p>
  
  <p>I wanted to show up a message dialog when the page loads. I cannot edit the javascript function attached to this onLoad event due to some reasons. </p>
  
  <p>So I created a new javascript file with a single function which will show the message dialog. Then I added this line in my javascript file </p>
  
  <pre><code>window.onload = onPageLoad; 
  </code></pre>
  
  <p><code>onPageLoad()</code> is my function which could show the message dialog. </p>
  
  <p>I attached this javascript file in my HTML using script tag. When I run this HTML file, <code>onPageLoad()</code> function is not getting called. </p>
  
  <p>I want to know whether <code>&lt;body&gt;</code> tag, onLoad event overrides the window onload. If so, can someone help me in implementing this functionality somehow. </p>
  
  <p>Please keep in mind that I could not edit my HTML file and I could write only new javascript file. Thanks. </p>