validar formulario javascript code example Example: javascript enviar formulario document.getElementById("myForm").submit();