I have timed a block for 20 minutes for a quiz section. But if a student finishes the test before the 20 minutes of time. The timer stills runs in the background. Is there a way I could stop the timer if the student moves out of the block? I look forward to any help.
Page 1 / 1
Assuming your timer is using setInterval(), use clearInterval().
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.