Navigator onLine property
Definition and Usage
onLine property is a read-only Boolean value that declares whether the system is in offline mode.
grammar
navigator.onLine
Browser Support
All major browsers support onLine property
Examples
Navigator Objects