Re: Suppress Browser Alert



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 .



Relevant Pages

  • Suppress Browser Alert
    ... I have a page that tries to forward the page using javascript every ... lose internet connection it would appear to the user as though nothing ... suppress that browser alert message with javascript or some other ... reset the counter ...
    (comp.lang.javascript)
  • Re: Giving Up on Updates
    ... I have SP1 and SP2 installed from the Microsoft cds but I cannot install ... KB834707 due to the problem with my internet connection being reset. ... >> that when I try to download again, it does not start completely over. ...
    (microsoft.public.windowsupdate)
  • Re: Reinstall XP or repair?
    ... except my internet connection is not as good as it ... reset TCP/IP: ... run the System File Checker to replace ... back up your data and do a clean install. ...
    (microsoft.public.windowsxp.general)
  • RE: Unable to connect to Internet.
    ... netsh ip reset resetlog.txt ... > My friend has given me his PC to be repaired. ... > using cable modem. ... but no internet connection is possible yet. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • update issue
    ... After Thursday's update I found I had no internet connection. ... investigation it turned out that the firewall had been reset to prevent ... Re-installing the rules via firestarter solved the problem. ...
    (Ubuntu)