![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/12/2004, 15:59
|
![Avatar de FuLaNo_](http://static.forosdelweb.com/customavatars/avatar34657_1.gif) | | | Fecha de Ingreso: mayo-2003 Ubicación: Don Torcuato, Buenos Aires, Argentina
Mensajes: 1.250
Antigüedad: 21 años, 8 meses Puntos: 2 | |
Sin el if que retorna el TRUE funciona igual¿?
<script language="JavaScript">
function validate(){
var temp
if (document.expedientesadd.x_expediente.value=="") {
alert("No ha introducido el nombre !")
return false;
}
if (document.expedientesadd.x_nombre.value=="") {
alert("nombre en blanco ingrese uno!")
return false;
}
if ((document.expedientesadd.x_expediente.value != "") && (document.expedientesadd.x_nombre.value != "")){
return true;
}
</script>
Pregunto porque no se mucho de javascript...
__________________ I Love Programming... |