dom / latest / networkinformation / type.html /

NetworkInformation.type

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The NetworkInformation.type read-only property returns the type of connection a device is using to communicate with the network.

Note: This feature is available in Web Workers

Value

An enumerated value that is one of the following values:

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

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
type
61
Only supported in Chrome OS
No
31
No
No
No
50
38
31-99
45
No
3.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type