Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/06/2010, 16:34
geoMente
 
Fecha de Ingreso: noviembre-2009
Mensajes: 112
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: hacer o no hacer sumbit con una condición en js

Hola

ya lo solucioné, en el form puse esto:

<form name="frmimage" id="frmimage" method="post" onsubmit="return hola(1)">

y el script:

function hola(h)
{
if (h == 1)
{
alert("siiii");
return 1;
}
else
{
alert("nooo");
return false;

}

}

Gracias por la ayuda