4 command, Syntax, Comments – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual
Page 21: Example

N
AURTECH
W
EB
B
ROWSER
S
MART
C
LIENTS FOR
W
INDOWS
CE .NET / P
OCKET
PC
Web Browser Programming Guide
Page 21
<head>
<meta http-equiv="BatteryNavigate"
content="javascript:OnBattery(%s, %s, %s, %s);">
</head>
<body>
<script language=javascript>
function OnBattery(ACstate, strength, backup, chemistry)
{
if (strength == -1)
{
alert("Unable to determine battery strength.");
}
else
{
alert("Battery strength = " + strength);
}
}
</script>
...
</body>
</html>
3.4 C
OMMAND
The Command tag performs actions which affect the client application. Currently
this only exits the web browser.
Syntax
http-equiv="Command"
content="exit"
Comments
This tag is supported for compatibility with other browsers. It is preferable to use
the IDA Action Code “IDA_PROGRAM_EXIT” via the IDA META tag, an “ida:”
URL or a PostIDA call.
Example
<html>
<head>
<meta http-equiv="Command" content="exit">
</head>
<body>
This message should not be visible.
</body>
</html>