You are here: irt.org | FAQ | JavaScript | Window | Q342 [ previous next ]
Try something like this (Netscape Navigator 4 only):
<SCRIPT LANGUAGE="JavaScript"><!-- var timeoutID = ''; function restartTimer() { window.clearTimeout(timeoutID); startTimer(); } function startTimer() { window.clearTimeout(timeoutID); timeoutID = window.setTimeout("close()",10000); } window.captureEvents(Event.MOUSEMOVE); window.onMouseMove = restartTimer; //--></SCRIPT> <BODY onLoad="startTimer()">