Dan
InnerText is an IE specific attribute. All browsers however support
innerHTML.
Try the following script I wrote a while back. It should work with all
browsers IE5+, FF, Safari and others that support DOM. Its logic is easier
to follow than the script you have and will not produce a arithmetic
overflow if left on the screen for a long period of time. It counts down in
minutes rather than seconds and displays a message when the timeout has
occurred.
Phil
<html>
<head>
<script language="JavaScript">
var timeoutCounter = new Number();
var timeoutCounter = 30;
function sessionTimeout(){
setTimeout('sessionTimeout()',60000);
if((timeoutCounter - 1) >= 0){
document.getElementById('sessionState').innerHTML = 'Timeout in ' +
timeoutCounter + ' minutes.';
timeoutCounter = timeoutCounter - 1;
}
else {
document.getElementById('sessionState').innerHTML = 'Your session
has timed out. You will need to login again.';
timeoutCounter = - 1;
}
}
</script>
</head>
<body onLoad="sessionTimeout()">
<div id="sessionState"></div>
</body>
</html>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf