sexta-feira, junho 10, 2005

NC JavaScript (Próximo Campo)


// inicio ---> jose nogueira neto 10/06/2005
function proximocampo(field, event) {
var keyCode = 0;

var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) {
var i;
for (i = 0; i < field.form.elements.length; i++)
if (field == field.form.elements[i])
break;
i = (i) % field.form.elements.length;
field.form.elements[i].focus();
return false;
} else return true;
}
// fim ---- > jose nogueira neto 10/06/2005

This page is powered by Blogger. Isn't yours?