12 onkey, 12 o, Syntax – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual

Page 27: Comments

Advertising
background image

N

AURTECH

W

EB

B

ROWSER

S

MART

C

LIENTS FOR

W

INDOWS

CE .NET / P

OCKET

PC




Web Browser Programming Guide

Page 27


<head>
<meta http-equiv="OnAllKeys"
content="javascript:myKeyAction(%s);"><! All keys >
</head>
<body>
Main Menu<br>
1. Cycle Count<br>
2. Inventory<br>
3. Receiving<br>
Select an action:<br>
Press ‘A’ to check version.<br>
...
<script language=javascript>
function myKeyAction(vkcode)
{
alert( "Key pressed =" + vkcode);
}
</script>
</body>
</html>

3.12 O

N

K

EY

The OnKey tag assigns a JavaScript action or URL to hardware keys on the
handheld device. The action will take place regardless of the focus location on
the page.

Syntax

http-equiv="OnKey0xZZ"
"OnKeyDDD"
"OnKeyIgnoreInText"
"OnKeyVK_name" (version 4.5.3 or later)
"OnKey_name" (version 4.5.3 or later)

content="javascript:myKeyAction();"
<!- or ->
content="http://10.1.1.8/inventory.htm"


Where ZZ is a two digit hexadecimal number that represents the Windows CE
“Virtual Key Code” (VK) for a physical key, or “DDD” is up to 3 decimal digits
representing the VK code, or “name” is the portion of the Virtual Key symbolic
name after the underscore.

Comments

See the Appendix for a list of Virtual Key Codes, their symbolic names,
hexadecimal representation, and the typical keyboard name. This tag allows
several different formats to specify the VK value. Using the symbolic name

Advertising