Yeah it's possible, look into using the setInterval(); command, that will act as your timer and then just code the buttons to reset the timer should the buttons be used before the timer runs out. HTH.