Suppress Browser Alert



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?

.



Relevant Pages

  • Re: Javascript on the client as an alternative to Perl/PHP/Python on the server
    ... stored while the Internet connection is established and accessed later offline. ... requires CSS, image, JavaScript, Flash, Quicktime support etc. ... I included "not so sophisticated" for a reason. ...
    (comp.lang.javascript)
  • RE: Java 1.5.0 /4 XP Home Issues???
    ... Everytime i visit any website..it says i need to turn on my ... javascript which i don't know how to do. ... > window running Java can continue but no other window can open an internet ... To make another internet connection the ...
    (microsoft.public.windowsxp.network_web)
  • javascript...again
    ... I am unable to log onto Facebook and get 'internet connection ... javascript error and it tells me to use a browser that is javascript-cabable. ... My security software is Panda Internet Security 2008 which my husband uses ...
    (microsoft.public.windowsxp.basics)
  • Re: How ot test if an internet connection exists...
    ... ezmiller wrote on 15 dec 2005 in comp.lang.javascript: ... > Does anybody know how to use javascript to test whether or not an ... > internet connection exists? ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: javascript > variable reset help!
    ... someone more family with javascript can help me out with. ... the variables do not reset, so any future searches return the same ... > doesn't reset for new input unless you clear your browser settings. ...
    (alt.html)