var t; window.onload=resetTimer; document.onkeypress=resetTimer; function logout() { alert("You are now logged out.") location.href='Logoff.aspx' } function resetTimer() { clearTimeout(t); t=setTimeout(logout,10000) //logs out in ten secs }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)