Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/11/2004, 07:45
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 1 mes
Puntos: 38
Hola Facundo.

Prueba esto y revisalo, no es dificil:

Código PHP:
<html
 <
head
  <
script language='JavaScript'>

   function 
validar(){
    
with (document.frm){
     if (
texto.value == ''){
      
alert('Debe escibir algún valor');
      
texto.focus();
     } else 
submit();
    }
   } 

  
</script> 
 </head> 
 <body> 
  <form name='frm'>
   Texto:
   <input type='text' name='texto'><br>
   <input type='button' value='Validar' onclick='validar()'>
  </form> 
 </body> 
</html> 
Saludos.