navigator.onLine

Term side of the Card
Topic: Interact with Client
Unit title: navigator.onLine
Categories: Property
Explanation side of the Card

Explanation: The browser API property that returns `true` if the browser is connected to the network and `false` if it's offline. It's commonly used to detect changes in network connectivity.

Browser compatibility:
  • The chrome browser supports this feature starting from version 2
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1.5
  • The safari browser supports this feature starting from version 4
Availability: