onLine

This property is used to return whether or not the browser is configured for online or offline browsing. A returned value of TRUE would indicate that the browser is configured for online browsing, while a returned value of FALSE would indicate that the browser is configured for offline browsing.

syntax:

navigator.onLine

This Property is used to access attributes of the following:

navigator