onLine property
Retrieves a value indicating whether the system is online.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 5.6.10
Remarks
In Windows Internet Explorer 8 and later, the onLine property returns true if both of the following conditions are true:
- the system is able to communicate with the network
- the system is not in global offline mode (Users can modify the global offline state by choosing Work Offline on the File menu.)
false.
In Microsoft Internet Explorer 4.0 through Windows Internet Explorer 7, the onLine property indicates whether the system is in global offline mode. It does not indicate whether the system can communicate with the network.
See also
- clientInformation
- navigator
- Reference
- onoffline
- ononline
- addEventListener
- Conceptual
- Connectivity Enhancements in Internet Explorer 8
Send comments about this topic to Microsoft
Build date: 11/28/2012
