This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

battery

Summary

The object that exposes the battery status information.

Property of apis/battery_status/NavigatorBatteryapis/battery_status/NavigatorBattery

Syntax

Note: This property is read-only.

var result = navigator.battery;

Return Value

Returns an object of type BatteryManagerBatteryManager