Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/06/2004, 09:38
CreaTuSitio.com
 
Fecha de Ingreso: junio-2004
Mensajes: 92
Antigüedad: 19 años, 10 meses
Puntos: 0
Para evaluar si el texto de una casilla de texto es nulo y asignarle 0 si lo es, podrias hacer algo asi:
<form onsubmit="if (this.casilla.value==null) { this.casilla.value='0' }">

para que se evalue el tipo de caracteres, podrias hacer algo asi:
<form onsubmit="if (isNaN(this.casilla.value)) { alert('Error! Debe ser un numero'); return false }">

Espero haber respondido tu pregunta.