+ 1

How do you get battery level in html

Sync battery

4th Aug 2022, 1:59 AM
Andrew
Andrew - avatar
2 Answers
+ 1
You probably can't, because HTML provides the document elements, doesn't interact. But you can easily get it with JavaScript method navigator: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery
4th Aug 2022, 2:33 AM
Emerson Prado
Emerson Prado - avatar
4th Aug 2022, 3:55 AM
Chris Coder
Chris Coder - avatar