Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script that reloads a page every 5 minutes?

    Can someone help me out with a fairly simple scipt? I am looking for a script that reloads the same window (that it opened) every 5 minutes. Can anyone help with that. When the page opens I want it to open a new window.. Then reload that window 1 every 5 minutes.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,732
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Try this:-

    <script language="JavaScript">
    if (document.images) {
    setTimeout('location.reload(true)',1000*60*5); // 5 minutes delay
    }
    else {
    setTimeout('location.href = location.href',1000*60*5);
    }
    </script>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •