Package | dom.objects |
Interface | public interface NavigatorOnLine |
Implementors | Navigator |
See also
Property | Defined By | ||
---|---|---|---|
DOM 0 onLine : Boolean [read-only]
Returns a boolean indicating whether the browser is working online. | NavigatorOnLine |
DOM 0 onLine | property |
onLine:Boolean
[read-only] Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns a boolean indicating whether the browser is working online.
Note (IE): In Windows Internet Explorer 8 and later, the onLine property returns true if both of the following conditions are true:
Note (IE): In Microsoft Internet Explorer 4.0 through 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.
public function get onLine():Boolean
See also
alert(navigator.onLine ? "You're online" : "You're offline");