Window.onload and body.onload in IE
<p>When I'm trying to run the following code in IE:-</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script language="javascript"&gt;
window.onload=function(){
alert("Window.onload is working");
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload="alert('body.onload is working')"&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>It seems that the body.onload overrides window.onload. I want both of them because I have a page and When I press a button, I get a second file and put it inside a div in the first page. So, I need to use window.onload in the first page and when I get the second one, I use body.onload of the second one.</p>

<p>I don't have this problem in FF,Opera,Chrome and Safari.</p>

<p>I hope my problem is clear. Thanks for any help.</p>
