Casio Naurtech CETerm Ver.5.1 Web Browser Programming Ma Instrukcja Użytkownika Strona 45

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 79
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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 = "";
Przeglądanie stron 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 78 79

Komentarze do niniejszej Instrukcji

Brak uwag