<script language="javascript">
var myTime = setTimeout("Timeout();", 60000);
function resetTime()
{
clearTimeout(myTime);
myTime = setTimeout('Timeout();', 60000);
}
function Timeout()
{
alert("你的登录已超时, 请点确定后重新登录!");
document.location.href='default.aspx';
}
</script>
<body οnkeydοwn="resetTime()" οnclick="resetTime()">
var myTime = setTimeout("Timeout();", 60000);
function resetTime()
{
clearTimeout(myTime);
myTime = setTimeout('Timeout();', 60000);
}
function Timeout()
{
alert("你的登录已超时, 请点确定后重新登录!");
document.location.href='default.aspx';
}
</script>
<body οnkeydοwn="resetTime()" οnclick="resetTime()">