title: iframe loading time limit use javascript
body: <p>i need to stop loading my iframe page after 5000 ms i'm use these but it's refresh the iframe every 5000 ms later what the problem . pleas fix it pleas. thanks </p>
  
  <pre><code>&lt;iframe id="iframe1" src="" width="920" height="900" border="2"&gt;&lt;/iframe&gt;
  &lt;script type="text/javascript"&gt; 
  function setIframeSrc() {
    var s = "http://lx5.in/CGIT-Results-p2-2013.php";
    var iframe1 = document.getElementById('iframe1');
    if ( -1 == navigator.userAgent.indexOf("MSIE") ) {
      iframe1.src = s;
  setTimeout(setIframeSrc, 5000);
    }
    else {
      iframe1.location = s;
  setTimeout(setIframeSrc, 5000);
    }
  }
  setTimeout(setIframeSrc, 5000);
  &lt;/script&gt;
  </code></pre>