title: refresh iframe on checkbox in timer
body: <p>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;</p>
  <pre><code>if (document.getElementById(&quot;1&quot;).checked == true) {
    
  
  setTimeout(function () {
    f.src = f.src;
      }, 100);
    }
    if (document.getElementById(&quot;2&quot;).checked == true) {
    
  
    setTimeout(function () {
      f.src = f.src;
  
        }, 5000);
      }
  </code></pre>