2 key actions – Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual
Page 11

N
AURTECH
W
EB
B
ROWSER
S
MART
C
LIENTS FOR
W
INDOWS
CE .NET / P
OCKET
PC
Web Browser Programming Guide
Page 11
function onscan(data, source, type, time, length)
{
if (length > 5)
{
document.form[0].barcode.value = data;
document.form[0].submit();
}
}
<\script>
2.2 K
EY
A
CTIONS
In many situations, a Web application will be written to make special use of the
keys on a handheld. The device may be used without a stylus or there may be
function keys (Fx) which the application uses to perform special actions. The
Naurtech Web Browser has several special features to make use of the hardware
keys. These features are especially important on Windows Mobile based
systems. The Windows Mobile browser does not have native support for special
key actions, but the Naurtech Web Browser overcomes this limitation.
The simplest way to assign a key to a special action is to use a special HTML
META tag. This will instruct the browser to execute a JavaScript method or
navigate to a pre-specified URL when the key is pressed:
...