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

Revision 722613 of disabled

  • Revision slug: Web/Events/disabled
  • Revision title: disabled
  • Revision id: 722613
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment Add tags, fix caps error.

Revision Content

The disabled event is raised when WiFi is disabled on the device.

General info

Specification
Wifi (Firefox OS specific) and WifiDirect (Firefox OS specific)
Interface
{{domxref("Event")}}
Bubbles
No
Cancelable
No
Target
{{domxref("WifiManager")}} and {{domxref("MozWifiP2pManager")}}
Default Action
None

Properties

Unknown

Example

navigator.mozWifiManager.ondisabled = function() {
  console.log( "Wifi has been disabled" );
};

{{WifiRelatedEvents()}}

Revision Source

<p>The <strong>disabled</strong> event is raised when WiFi is disabled on the device.</p>

<h2 id="General_info">General info</h2>

<dl>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Specification</dt>
 <dd style="margin: 0 0 0 120px;"><a class="external" href="https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MozWifiManager.webidl">Wifi (Firefox OS specific)</a> and <a class="external" href="https://dxr.mozilla.org/mozilla-central/source/dom/webidl/MozWifiP2pManager.webidl">WifiDirect (Firefox OS specific)</a></dd>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Interface</dt>
 <dd style="margin: 0px 0px 0px 120px;">{{domxref("Event")}}</dd>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Bubbles</dt>
 <dd style="margin: 0px 0px 0px 120px;">No</dd>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Cancelable</dt>
 <dd style="margin: 0px 0px 0px 120px;">No</dd>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Target</dt>
 <dd style="margin: 0px 0px 0px 120px;">{{domxref("WifiManager")}} and {{domxref("MozWifiP2pManager")}}</dd>
 <dt style="width: 120px; text-align: right; clear: left; float: left;">Default Action</dt>
 <dd style="margin: 0px 0px 0px 120px;">None</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p>
 <i>Unknown</i>
</p>

<h2 id="Example">Example</h2>

<pre class="brush:js;">
navigator.mozWifiManager.ondisabled = function() {
  console.log( "Wifi has been disabled" );
};
</pre>

<h2 id="Related_Events">Related Events</h2>

<p>{{WifiRelatedEvents()}}</p>
Revert to this revision