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

NetworkInformation.type

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.type read-only property returns the type of connection a device is using to communicate with the network.

Syntax

var type = netInfo.type

Return value

An enumerated value that is one of the following values:

  • "bluetooth"
  • "cellular"
  • "ethernet"
  • "none"
  • "wifi"
  • "wimax"
  • "other"
  • "unknown"

Specifications

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

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 31 (31) Not supported Not supported Not supported
unknown (Yes) 33 (33) Not supported Not supported Not supported
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support Not supported (Yes) 31.0 (31) Not supported Not supported Not supported (Yes)
unknown Not supported (Yes) 33.0 (33) Not supported Not supported Not supported Not supported

Document Tags and Contributors

 Contributors to this page: matthewlw, teoli, jpmedley
 Last updated by: matthewlw,