Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

92
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda