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

  • Revision slug: DOM/Mozilla_event_reference/ondisabled
  • Revision title: ondisabled
  • Revision id: 366767
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment Mozilla_event_reference/ondisabled DOM/Mozilla_event_reference/ondisabled

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