Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 517155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:48:18+00:00 2026-05-13T07:48:18+00:00

I am doing online Exam Management, I have set a time duration for an

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:48:19+00:00Added an answer on May 13, 2026 at 7:48 am

    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

    1. Page loads and you start a timer.
    2. User reloads the page.
    3. Listen for the onBeforeUnload (and onUnload) events in Javascript and write a cookie that stores the current time.
    4. When the page reloads back, read this time from the cookie and use that.
    5. When timer ends, be sure to clear the cookie.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing an Online Quiz project in C#. The test client is a
Is there a simple way of doing this I found this online and I
I hope this is something straightforward that I'm doing wrong. I saw something online
Doing some jquery animation. I have certain divs set up with an attribute of
Working on a Online Test. I have 3 tables Questions Subject Topic I have
I am currently doing an online test system, I want allow admin to create
I am doing a very small online store application in PHP. So I have
I was doing one of these online Java tests and I was asked this
I'm currently doing an online course, however it doesn't seem to enjoy this method:
I am building a online ticket booking site . In this I am doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.