T
tertullian
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?
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?