--- title: NavigatorOnLine slug: Web/API/NavigatorOnLine translation_of: Web/API/NavigatorOnLine ---

{{APIRef("HTML DOM")}}

In progress 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

{{ CompatibilityTable() }}

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
on {{domxref("WorkerNavigator")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatGeckoDesktop(29)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
on {{domxref("WorkerNavigator")}} {{CompatUnknown}} {{CompatGeckoMobile(29)}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

See also