why is gif not animating by itself?
<p>I have a simple .gif image on my web page. In javascript i have :-</p>

<p>window.onload = function(){
    document.forms[0].submit();
}</p>

<p>I am using Glassfish Server and basically the process takes little long even though i have submitted the form as soon as it loads. Thus, the control remains on the page for 2-3 seconds before it is redirected to some other page (as the process is little complex). My problem is, even though the control remains on the same page why is the .gif not animating?</p>

<p>How do i solve this problem?</p>
