duma
06-14-2004, 02:22 PM
Hi!
I've been trying to make a script which reloads a page every 1 min (let's call it page_ok). If the page cannot be loaded (I.e. the Internet connection has been lost) a local default page should be loaded (page_error). The script will continue to try to reload the page_ok every 1 min.
I have tried this with frames and iframes, but my problem is that I cannot find a method/property to check whether page_ok has actually been loaded successfully. The iframe.src property contains the link to page_ok even though I get a DNS error page not found.
Is there anyway to make the check?
PS. The browser is IE 5.5+
Any help is highly appreciated :)
I've been trying to make a script which reloads a page every 1 min (let's call it page_ok). If the page cannot be loaded (I.e. the Internet connection has been lost) a local default page should be loaded (page_error). The script will continue to try to reload the page_ok every 1 min.
I have tried this with frames and iframes, but my problem is that I cannot find a method/property to check whether page_ok has actually been loaded successfully. The iframe.src property contains the link to page_ok even though I get a DNS error page not found.
Is there anyway to make the check?
PS. The browser is IE 5.5+
Any help is highly appreciated :)