+ 1
How do you get battery level in html
Sync battery
2 Respostas
+ 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
+ 1
There are some examples by members on this app.
https://code.sololearn.com/W0PYOfUHpBH4/?ref=app
https://code.sololearn.com/WEFAMP33GHDg/?ref=app