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

91
Views
I want to put several buttons with redirect timer capability on one page after clicking

I put the following code in the header of my site and I can use it to redirect buttons to a specific address.

<script>
 let redirect_Page = (ele) => {
    ele.disabled = true;
    let iCnt = 10;  // for time in seconds.
    
    let iTimerId = setInterval(function () {
        document.getElementById ('msg').innerHTML = 'Redirect ' + iCnt + ' Second';
        
        iCnt--;     // decrease counter by 1.
        
        if (iCnt === 0) {
            // now, redirect page.
            location.href = document.getElementById("url_free_dl").href;
            clearInterval(iTimerId);        // clear time interval.
        }
    }, 1000);
}

But I do not know how to use it on more links per page?

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!