Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
wanted to decrement remaining time with 1 sec accuracy
xmlhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
        var valr5 = this.responseText;
        document.getElementById("countdown").innerHTML = valr5;
        
        if (valr5 == '00:00'){
            window.location = "index.php";
        }   
    }
};

On Ajax call, in return responseText, I am getting remaining minutes and seconds in this format '1.30'. (it can be anything like '00.28' in place of '1.30')

I wanted decrement it by 1 till '00:00' but with accuracy of 1 sec and show that countdown in "countdown" div

Please can anyone guide me on this.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!