Re: Suppress Browser Alert
- From: RobG <rgqld@xxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 01:14:23 GMT
tertullian wrote:
I have a page that tries to forward the page using javascript every minute. However, I have to write it so that if the computer were to lose internet connection it would appear to the user as though nothing has changed and try to refresh again in a minute. I have everything working except for if the computer loses internet connection it throws up a browser error that the page cannot be reached. Is there anyway to suppress that browser alert message with javascript or some other option? The code I am use looks like this:
try { window.location.href="nextpage.html"; } catch(err) { reset the counter }
As I said the counter itself works. The problem is that it pops up the alert and I can't have it do that. It needs to appear as though nothing has happened to the user.
Any thoughts?
There is a Jim Ley tutorial here on XMLHttpRequest that includes how to determine if a URL is available or not:
<URL: http://jibbering.com/2002/4/httprequest.html#HEAD >
-- Rob .
- References:
- Suppress Browser Alert
- From: tertullian
- Suppress Browser Alert
- Prev by Date: Re: Handle Leaks with Microsoft.XMLDOM
- Next by Date: Re: File upload
- Previous by thread: Suppress Browser Alert
- Next by thread: File upload
- Index(es):
Relevant Pages
|