You are here: irt.org | FAQ | JavaScript | Form | Q1573 [ previous next ]
Try:
<script language="JavaScript"><!-- var c = 0; var elementOrder = new Array(1,2,5,4,7,8,3,6); // must have one less number than form elements. //--></script> <form name="myForm"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> <input type="text" onBlur="c++; setTimeout('document.myForm.elements['+c+'].focus()',1)"> </form>