Latest web development tutorials

Navigator onLine property

Navigator Object Reference Navigator Objects

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support onLine property


Examples

Whether the browser Online:

var x=navigator.onLine;

x output:


try it"


Navigator Object Reference Navigator Objects