This article is in need of a technical review.
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.
connection property value provides the status and current network in used by the WiFi adapter.
var mac = navigator.mozWifiManager.connection
Return an object with the following properties:
A string representing the current connection status, one of
MozWifiStatusChangeEvent.statusfor more information about each of those statuses).
networkobject representing the current network in use or
nullif the device is not connected to any network (see
WifiManager.getNetworks()for more information about
Not part of any specification.