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

164
Vistas
refresh iframe on checkbox in timer

i have some checkboxes which i want to execute some code each second, the code inside the timer, which is inside of the if checked == true, it sets the src to be the same which i want it to refresh the iframe getting the new content on the iframe's website, the checkboxes are for different timers to reset the iframe, can u see whats stopping it executing, the code below;

if (document.getElementById("1").checked == true) {
  

setTimeout(function () {
  f.src = f.src;
    }, 100);
  }
  if (document.getElementById("2").checked == true) {
  

  setTimeout(function () {
    f.src = f.src;

      }, 5000);
    }
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Maybe try to use ifrmae.contentWindow.location.reload() to reload the iframe.

if (document.getElementById("1").checked) {
  

setTimeout(function () {
  f.contentWindow.location.reload()
    }, 100);
  }

  if (document.getElementById("2").checked ) {
  

  setTimeout(function () {
    f.contentWindow.location.reload()
      }, 5000);
    }
about 4 years ago · Juan Pablo Isaza Denunciar
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