Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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, implement it.

Properties

The NavigatorOnLine interface doesn't inherit any property.

NavigatorOnLine.onLine Read only
Returns a Boolean indicating whether the browser is working online.

Methods

The NavigatorOnLine interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'NavigatorOnLine' in that specification.
Living Standard No change from the latest snapshot, HTML5
HTML5
The definition of 'NavigatorOnLine' in that specification.
Recommendation Snapshot of WHATWG HTML Living Standard with its initial specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
on WorkerNavigator ? 29 (29) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
on WorkerNavigator ? 29.0 (29) ? ? ? ?

See also

  • The Navigator interface that implements it.

文件標籤與貢獻者

標籤: 
 此頁面的貢獻者: teoli
 最近更新: teoli,