chargingchange

  • Revision slug: Mozilla_event_reference/chargingchange
  • Revision title: chargingchange
  • Revision id: 323097
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

The chargingchange event is fired when the charging attribute of the battery API has changed.

General info

Specification
Battery
Interface
Event
Bubbles
No
Cancelable
No
Target
navigator.battery
Default Action
None

{{BatteryProperties_Example()}}

Related Events

{{BatteryRelatedEvents()}}

Revision Source

<p>The <code>chargingchange</code> event is fired when the <code>charging</code> attribute of the <a href="/en-US/docs/DOM/window.navigator.battery">battery API</a> has changed.</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://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html">Battery</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;">
    <code>navigator.battery</code></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>
<p>{{BatteryProperties_Example()}}</p>
<h2>Related Events</h2>
<p>{{BatteryRelatedEvents()}}</p>
Revert to this revision