Зацикливания функцииЗдравствуйте, столкнулся с проблеммай Есть функция, которая должна срабатывать бесконечно Скрипит приважу ниже вопрос как зациклить функцию чтоб она не останавливалась
function Length_TextField_Validator(newbeneacc) { // Check the length of the value of the element named text_name // from the form named form_name if it's < 3 and > 10 characters // display a message asking for different input if ((newbeneacc.ctlAccountNumber.value.length < 3) || (newbeneacc.ctlAccountNumber.value.length > 7)) { alert("hhh"); // Place the cursor on the field for revision newbeneacc.ctlAccountNumber.focus(); // return false to stop further processing return (false); } // If text_name is not null continue processing return (true); } setTimeout("Length_TextField_Validator()",1000); |