User manual - Web_Browser_Prog_Guide

NAURTECH WEB BROWSER SMART CLIENTS FOR WINDOWS CE .NET / POCKET PC
Web Browser Programming Guide Page 20
specify the update interval and a notification when the strength falls below a
designated level.
Example
<html>
<head>
<meta http-equiv="Battery" content="Show">
<meta http-equiv="Battery" content="HBattery">
<meta http-equiv="Battery" content="x=200">
<meta http-equiv="Battery" content="y=20">
</head>
<body>
The horizontal battery icon should be visible.
...
</body>
</html>
3.3 BATTERYNAVIGATE
The BatteryNavigate tag causes the specified JavaScript or URL to be invoked
with battery information on a regular interval. The interval can be specified within
a CETerm configuration dialog.
Syntax
http-equiv="BatteryNavigate"
content="javascript:OnBattery(%s, %s, %s, %s);"
<!- or ->
content="/battery.htm?AC=%s&strength=%s&backup=%s&chemistry=%s"
Where the ā€œ%sā€ are replaced with (1) AC line status, (2) main battery strength as
a percentage, (3) backup battery strength as a percentage, and (3) the chemistry
of the battery.
Comments
This tag will work with or without a visible battery meter. The strength normally
ranges from 0 to 100. The special strength value of -1 indicates that the strength
cannot be determined. If you use a URL for the action, in most cases, the URL
will navigate away from the current page rather than repeatedly calling a
JavaScript method.
Example
<html>