3 batterynavigate, Example, Syntax – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual
Page 20: Comments

N
AURTECH
W
EB
B
ROWSER
S
MART
C
LIENTS FOR
W
INDOWS
CE .NET / P
OCKET
PC
Web Browser Programming Guide
Page 20
specify the update interval and a notification when the strength falls below a
designated level.
Example
The horizontal battery icon should be visible.
...
3.3 B
ATTERY
N
AVIGATE
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);"
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