This is an archived page. It's not actively maintained.


This API is available on Firefox OS for internal applications only.


The 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:

status Read only
A string representing the current connection status, one of disconnected, connecting, associated, or connected (see MozWifiStatusChangeEvent.status for more information about each of those statuses).
network Read only
A network object representing the current network in use or null if the device is not connected to any network (see WifiManager.getNetworks() for more information about network objects).


Not part of any specification.

See also