NavigatorOnLine

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 Navigator or WorkerNavigator (en-US), implement it.

Properties

The NavigatorOnLine interface doesn't inherit any property.

NavigatorOnLine.onLine 読取専用
Returns a Boolean indicating whether the browser is working online.

Methods

The NavigatorOnLine interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
HTML Living Standard
NavigatorOnLine の定義
現行の標準 No change from the latest snapshot, HTML5
HTML5
NavigatorOnLine の定義
勧告 Snapshot of HTML Living Standard with its initial specification.

Browser compatibility

BCD tables only load in the browser

See also

  • The Navigator interface that implements it.