Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

reload page iframe

By: a guest on Jul 29th, 2010  |  syntax: HTML  |  size: 0.33 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <script>
  2. function reloadIt()
  3. {
  4. frm=document.getElementsByName("grafiek")[0];
  5. frm.src=frm.src;
  6. setTimeout("reloadIt()",600000); // 10 mins
  7. }
  8. setTimeout("reloadIt()",60000); // Init : 1 minute
  9. </script>
  10. <iframe name="grafiek" src="http://www.site.com/path/" width="1200px" height="800px" frameborder="0" scrolling="no"></iframe>