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

95
Vistas
js update page from two iframes

ok so i have two iframes, one iframe has a auto refresher one doesn't, the one with a auto refresher would get the newest updates to the file and i want js to match them against each other and execute if there has been a change, they both have the same src please help me the code is below

<iframe src="messages.txt" height="100%" width="100%" id="frame"></iframe>
<iframe src="messages.txt" height="100%" width="100%" id="frame1"></iframe>
<p>

<script>
  
  var iframeContent = getElementById('frame1').contentDocument;
  
  setInterval(function () {
  
      var iframeContent1 = getElementById("frame").contentDocument;
  
      if(iframeContent1 !== iframeContent) {
  
          window.location.href= './';
      }
  }, 1000);
  </script>


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