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

  • SEARCH
  • Home
  • 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 8141205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:25:39+00:00 2026-06-06T12:25:39+00:00

I am developing a quiz component in Javascript and I have a startTimer() function

  • 0

I am developing a quiz component in Javascript and I have a startTimer() function in it which starts a countdown based on the value passed to it.
The function is called when the page loads and the quiz starts.

I don’t what users to call the function again and alter the quiz time.

Is it possible to detect that the function is called a second time???

  • 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-06-06T12:25:42+00:00Added an answer on June 6, 2026 at 12:25 pm

    Any user can just disable JavaScript in their browser.

    I would suggest that you record the time between the page being served and the answers coming back on the server and use that as the definitive source for how long they took. Perhaps allow a little buffer to compensate for network latency and page rendering time.

    The JavaScript timer can be a nice UI feature to help the user know how much time they have left, but never trust a user interface, for a smart user will write his own UI (or in this case, configure the UI to not use JavaScript).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a quiz application in php and Javascript. The quiz starts when
I'm developing a script for technical quiz which is going to have MCQ types
Hello everyone i am developing an quiz based app in android and i have
I am developing an intranet web application which is a Quiz Engine. I have
I am developing an quiz based application. I wanted to know like, how can
I am developing an quiz based app and i wanted to know how i
I am developing a quiz based app. The quiz contains 1 question and 4
I'm developing an Android app which is a quiz. On the other hand, I'm
I am developing a Quiz game application which is being developed completely but at
The web application that I am developing right now has something called quiz engine

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.