Check connection status

Asked

Viewed 24 times

4

I wanted to prevent the connection offline user made unnecessary requests not to have to wait for return timeout or any other mistake...

Is there any javascript function able to check the status of the user’s internet connection?

  • Have you seen http://answall.com/a/66677/129 ?

  • @Sergio, had not seen, is the same question rs. I should delete or mark as duplicate?

  • You can leave it to me, but do as you see fit. If you didn’t find it, it’s because the other one used other words, so it might be nice to have your question here.

  • 1

    By me you can mark as duplicate no problem. Since navigator.onLine It is not reliable, it is easier for me to work the status of the same requests. TKS

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.