Casio Naurtech CETerm Ver.5.1 Web Browser Programming Ma Uživatelský manuál Strana 45

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 79
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 44
NAURTECH WEB BROWSER SMART CLIENTS FOR WINDOWS CE .NET / POCKET PC
Web Browser Programming Guide Page 45
<br>
Focus starts in first input<br>
<input type=text name="scan1" value="" size=30
onkeypress="myonkey();"><br>
<input type=text name="scan2" value="" size=30
onkeypress="myonkey();"><br>
<input type=text name="scan3" value="" size=30
onkeypress="myonkey();"><br>
<input type=button name="clear" value="Clear Data"
onclick="myclear();" onkeypress="myonkey();">
</center>
</form>
<script for="document" event=onkeypress>
// IMPORTANT: This handler is used when focus is not already
in an input object
myonkey();
</script>
<script language=javascript>
// Handle the key event
function myonkey()
{
if (window.event.keyCode == 9) // look for tab key
{
nextfield( document.activeElement );
window.event.cancelBubble = true;
}
}
// Move from the current field to the next field
function nextfield( current )
{
if (current == document.form1.scan1)
{
document.form1.scan2.focus();
}
else if (current == document.form1.scan2)
{
document.form1.scan3.focus();
}
else
{
document.form1.scan1.focus();
}
}
// Clear the fields
function myclear()
{
document.form1.scan1.value = "";
Zobrazit stránku 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 78 79

Komentáře k této Příručce

Žádné komentáře