--- title: NavigatorOnLine slug: Web/API/NavigatorOnLine tags: - API - HTML-DOM translation_of: Web/API/NavigatorOnLine ---

{{APIRef("HTML DOM")}}

The NavigatorOnLine interface contains methods and properties related to the connectivity status of the browser.

There is no object of type NavigatorOnLine, but other interfaces, like {{domxref("Navigator")}} or {{domxref("WorkerNavigator")}}, implement it.

Properties

The NavigatorOnLine interface doesn't inherit any property.

{{domxref("NavigatorOnLine.onLine")}} {{readonlyInline}}
Returns a {{domxref("Boolean")}} indicating whether the browser is working online.

Methods

The NavigatorOnLine interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', '#navigatoronline', 'NavigatorOnLine')}} {{Spec2('HTML WHATWG')}} No change from the latest snapshot, {{SpecName('HTML5 W3C')}}
{{SpecName('HTML5 W3C', '#navigatoronline', 'NavigatorOnLine')}} {{Spec2('HTML5 W3C')}} Snapshot of {{SpecName('HTML WHATWG')}} with its initial specification.

Browser compatibility

{{Compat("api.NavigatorOnLine")}}

See also