Java Script function call on body load
<p>I have a java script function that i have called on body load mousemove() the function is working but the problem is that function is not overloading. Here is the code:</p>

<pre><code> function timeout(){  
        setTimeout ("logout()",60000);

        }
     function logout()
        {    
         parent.parent.location="logout.php";
         } 

&lt;body onmousemove="timeout()" &gt;
</code></pre>

<p>now the problem is it calls on body load and whenever mouse moves but the page still move to the logout page after the specified time however it should override the time whenever mouse moves and the function calls.</p>
