title: setAttribute('src','page.html') is not working
body: <p>I have the following JavaScript to rotate pages in a <code>iframe</code> tag every 5 seconds.</p>
  
  <pre><code>function setPage() {
      if (i == pages.length) {
          i = 0;
      }
      alert(pages[i]); //verify the right url is there
      var elmnt = document.getElementById('dashboard');
      elmnt.setAttribute('src', pages[i]);
  
      i++;
  }
  setInterval("setPage()", 5000);
  </code></pre>
  
  <p>The loop, interval, etc., is working. However, nothing changes for the <code>src</code> attribute of my <code>iframe</code> tag.</p>
  
  <p>I tested with both IE8 and Chrome.</p>
  
  <p>What am I doing wrong? How can I accomplish that (no jQuery...)</p>