Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/03/2006, 06:17
Avatar de niconico
niconico
 
Fecha de Ingreso: enero-2006
Mensajes: 166
Antigüedad: 19 años, 1 mes
Puntos: 0
Muchas gracias por la respuesta pero me sigue saliendo el alert, mi código es:
<script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

if (theForm.archivito.value.substr(theForm.archivito. value.length -3) != "doc" || theForm.archivito.value.substr(theForm.archivito.v alue.length -3) !="gif")
{
alert("Introduzca un Archivo");
theForm.archivito.focus();
return (false);
}
return (true);
}
Yo lo que quiero es que si el cliente quiere subir un archivo que se llame pepito_perez.doc pueda pero si es pepito_perez.xls le salga el alert. Muchas gracias