Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda