Intermec 760 User Guide

Page of 82
68
iBrowse User’s Guide
Example
Changes the value of the edit box based on where the tap occurred in the 
edit box.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID=”IBEAX1” CLASSID=”CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9” WIDTH=”50” HEIGHT=”25”>
</BODY>
<SCRIPT LANGUAGE=”JSCRIPT” FOR=”IBEAX1” EVENT=”OnClick(x, 
y)”>
if (x < (IBEAX1.Width / 2))
IBEAX1.Value = ’LEFT’;
else
IBEAX1.Value = ’RIGHT’;
return 0;
</SCRIPT>
</HTML>
OnFocus
The OnFocus event is fired when ITCAXEdit control receives focus. No 
return value is required.
Syntax
Void OnFocus(void)
Example
When the edit control gets focus, set the value to the default.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID=”IBEAX1” CLASSID=”CLSID:D8A6AACE-0F02-
4440-8F07-64CF68F33DE9” WIDTH=”50” HEIGHT=”25”>
</BODY>
<SCRIPT LANGUAGE=”JSCRIPT” FOR=”IBEAX1” EVENT=”OnFocus()”>
IBEAX1.Value = ’Default’;
</SCRIPT>
</HTML>
LostFocus
The LostFocus event is fired when ITCAXEdit control loses focus. No 
return value is required.
Parameter
Description
void
No parameters