Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/04/2003, 23:11
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 22 años, 6 meses
Puntos: 0
y ke hace enn el foro de asp?

Código:
<head>
<script language=javascript>
function validar()
{
 if (document.formulario.name.value="")
 {
  alert("ingrese algo..");
  return false;
}
 if (document.formulario.apell.value="")
 {
  alert("ingrese algo..");
  return false;
}
  return true
}


function ejecutar()
{
  if (validar()==true)
  {
    //hacer el submit
  }
}
</head>
<body>
<form name=formulario....>
Ingrese su Nombre<input type=text name=name><br>
Ingrese su Apellido<input type=text name=apell><br>

<INPUT TYPE="button" VALUE="Enviar Datos" name="Submit" onClick="javascript:ejecutar();">
</form>