I am doing online Exam Management, I have set a time duration for an exam to 5 min.
When student attend this test, timer starts decreasing.
I made this timer using javascript.
What the problem is if the student refresh the page timer starts from first. How can I make the time to be static if page refreshed.
You cannot avoid the timer from resetting because when a page reload, all HTML and JS reloads.
You can store the current time in a “cookie”. Look up “Using cookies in Javascript”.
The work flow would be as follows