NetworkInformation

by 3 contributors:
この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

The NetworkInformation interface contains methods and properties related to the network type of the browser.

There is no object of type NetworkInformation, but other interfaces, like Navigator, implement it.

Properties

The NetworkInformation interface doesn't inherit any property.

NetworkInformation.connection Read only
Provides a Connection with information about the network connection of a device.

Methods

The NetworkInformation interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
Network Information API
The definition of 'NetworkInformation' in that specification.
Editor's Draft Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 20 webkit 12.0 moz[1] Not supported Not supported Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported 12.0 moz[1] Not supported Not supported Not supported

[1] The Network API can be disabled using the dom.network.enabled preference.

As of Gecko 12.0, the Network API is implemented for Android systems only. Support for Linux (bug 712442) and Windows (bug 721306) systems is in progress.

See also

ドキュメントのタグと貢献者

Contributors to this page: Sebastianz, fscholz, teoli
最終更新者: Sebastianz,