Click to See Complete Forum and Search --> : Help with window.close


kimpee1
06-13-2003, 11:37 AM
I need help with my timeout javascript so that I can force the page to close and the user would have to login back in again. How do I insert the javascript code into the following?

<script>ident=window.setTimeout("alert('Session has timed out. Please exit and log back in.')",300000);
</script>

Jona
06-13-2003, 11:45 AM
function logout(){
alert("Session has timed out. Please exit and log back in.");
window.location.href="loginPage.html";
}

ident=window.setTimeout("logout()",300000);


Jona

Khalid Ali
06-13-2003, 11:47 AM
window.setTimeout("alert('Session has timed out. Please exit and log back in.')",300000);

this should work perfectly....whats the error you are getting if at all?