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

163
Views
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 answers
Answer question

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 Report
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!