El codigo que tengo es:
Código HTML:
function fixElement(element, message) { alert(message); element.focus(); } function verifica(form) { var passed = false; if (form.ZCUSTOMERID.value == "") { fixElement(form.ZCUSTOMERID, "Por favor, introduzca su nombre."); } else { return true; } return passed; } <form method="post" action="start" id="MIInsert" name="MIInsert" onSubmit = "return verifica(this);"> <table> <tr> <td> OT: </td> <td> <input type="text" name="ZCUSTOMERID"> </td> <td> <input type="submit" value="Insertar" class="image" name="_event_navInsert_ZBACK"> </td> </tr> </table> </form>
Gracias,