7

navigator.onLine is always returns true when there is no internet connection in firefox but ie10 and google chrome is working correctly.

I'm using firefox version 19.

How to check internet connection using javascript?

Thanks in advance

Natesan
  • 1,135
  • 2
  • 14
  • 21
  • 1
    The only thing you can do is try it out. Ping your service and wait for a response. – Bergi Aug 06 '13 at 12:05
  • possible duplicate of [Check if Internet Connection Exists with Javascript?](http://stackoverflow.com/questions/2384167/check-if-internet-connection-exists-with-javascript) – Bergi Aug 06 '13 at 12:06

0 Answers0