este es un tema muy masticado pero a decir verdad tengo problemas aun. Ya he revisado varios codigos y si me funcionan em mi computadora pero al subirlos al host (http://galeon.hispavista.com)no lo hacen. Acaso es el hosting??? ayuda porfavor!!!
aca esta mi codigo.
 
<html>
<head><title>Validacion</title></head>
<script>
function usrpas(){ 
	if (document.form1.usuario.value=="user" && document.form1.pass.value=="12345")
		{
		window.location="mipagina.html"
		} 
	else {
		alert("Error en Usuario o Contraseña. Intenta de nuevo.")
		}
} 
document.oncontextmenu=new Function("return false"); 
</script> 
<form name="form1">
  <center>	
                 Nombre<br>
	<input type="text" name="usuario"><br> 
	Password<br>
	<input type="password" name="pass">
	<br> 
	<input type="button" value="Entrar" onclick="usrpas()">
  </center>
</form> 
</body>
</html> 
   
 



