![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/10/2006, 17:29
|
![Avatar de Seppo](http://static.forosdelweb.com/customavatars/avatar93639_1.gif) | | | Fecha de Ingreso: marzo-2005 Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 10 meses Puntos: 17 | |
¿Cuándo se ejecuta la función?
Deberías hacer algo como
<form ... onsubmit="return validar(this)">
y a la función darle un valor de retorno
function validar(form) {
if (form.name.value!="admin") {
alert("No se puede logear desde esta web")
return false;
}
return true;
} |