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 432733 of disabled

  • Revision slug: Web/Reference/Events/disabled
  • Revision title: disabled
  • Revision id: 432733
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment Web/Reference/Events/ondisabled Web/Reference/Events/disabled

Revision Content

The ondisabled handler is executed when Wifi is disabled on the device.

General info

Specification
Firefox OS specific
Interface
Event
Bubbles
No
Cancelable
No
Target
navigator.wifi
Default Action
None

Properties

Unknown

Example

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

Related Events

{{WifiRelatedEvents()}}

Revision Source

<p>The <code>ondisabled</code> handler is executed when Wifi is disabled on the device.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="https://mxr.mozilla.org/mozilla-central/source/dom/wifi/nsIWifi.idl?rev=3e586802f478#182">Firefox OS specific</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    Event</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    navigator.wifi</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p><i>Unknown</i></p>
<h2 id="Example">Example</h2>
<pre class="brush:js;">
navigator.wifi.ondisabled = function() {
  console.log( "Wifi has been disabled" );
};
</pre>
<h2>Related Events</h2>
<p>{{WifiRelatedEvents()}}</p>
Revert to this revision