Navigator.onLine returns true when there is no internet connection

navigator.onLine always returns true if Firefox does not have an Internet connection but ie10 and google chrome work correctly.

I am using firefox version 19.

How to check internet connection using javascript?

Thank you in advance

+6
source share

Source: https://habr.com/ru/post/951116/


All Articles