RTKHOT
asked on
navigator.online not working
Please see this code:
if (localStorage.SurveyComple ted == 'True') {
if (navigator.onLine) {
window.location.href = "Splash.htm";
}
else {
pfShowNetworkErrAlert();
}
}
I am faced with a very strange issue.
If i am using my website on 1024 x 768 or 1366 x 768, then the above function works as it should.
BUT, on 1920 x 1080, it always goes in the 'if' part even though my machine is NOT online. What is this weird issue? How do I resolve it?
if (localStorage.SurveyComple
if (navigator.onLine) {
window.location.href = "Splash.htm";
}
else {
pfShowNetworkErrAlert();
}
}
I am faced with a very strange issue.
If i am using my website on 1024 x 768 or 1366 x 768, then the above function works as it should.
BUT, on 1920 x 1080, it always goes in the 'if' part even though my machine is NOT online. What is this weird issue? How do I resolve it?
ASKER
I've requested that this question be deleted for the following reason:
wrong question
wrong question
ASKER
PLEASE DO NOT DELETE THIS QUESTION.
ASKER
pramodkrjsr =>
my browser shows online even though the network cable was unplugged
my browser shows online even though the network cable was unplugged
Your reason "wrong question" is not clear to me. You said your browser showing online even the network is unplugged...that means you still have the issue. Why you wanted to close this question. Did us got the solution?
ASKER
Please do not delete this question. it was an accident
we have 4 machines.
on 2 of them, the browser is returning online even though the network cable is unplugged. so what could this issue be?
we have 4 machines.
on 2 of them, the browser is returning online even though the network cable is unplugged. so what could this issue be?
may be connected via some other wireless network (wifi) may be.
ASKER
No i checked that. there is no other connection. That's why I am wondering what this odd issue is
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window