- Posts: 26
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).ready(function() { var idleInterval = setInterval(timerIncrement, 60 * 1000); // One minute 60 * 1000 }); $(document).on('click keypress mousemove scroll',function(){ idleTime = 0; }); function timerIncrement() { idleTime = idleTime + 1; if(10 <= idleTime) { window.location = "/12345?newtest=Y"; } } }
Didn't know … original code is most used on desktop (IE browser too).tpartner wrote: Does that work if the device goes to sleep?