1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<html>
<head>
<title></title>
<script type="text/javascript">
<!--
function Autotab(box, longueur, texte)
{
if (texte.length > longueur-1)
{
//document.forms[formulaire].elements[input].focus();
document.getElementById(box).focus();
}
}
//-->
</script>
</head>
<body>
<input type="text" id="jj" maxlength="2" size="2" style="width:20px" onkeyup="Autotab('mm', this.size, this.value); "/> /
<input type="text" id="mm" maxlength="2" size="2" style="width:20px" onkeyup="Autotab('aa', this.size, this.value); "/> /
<input type="text" id="aa" maxlength="4" style="width:35px">
</body>
</html> |
Partager