Skip to content

Instantly share code, notes, and snippets.

@daniiable
Created April 24, 2016 21:10
Show Gist options
  • Save daniiable/45893bfcb4e8b6a60a0a07b8bfd440e3 to your computer and use it in GitHub Desktop.
Save daniiable/45893bfcb4e8b6a60a0a07b8bfd440e3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Iniciar Sesión</title>
</head>
<body>
<p>Para iniciar sesión da clic en el siguiente enlace:</p>
<a href="login.html"
onclick="window.open('LOGIN.HTML',
'addonchat','width=620,height=500,status=no,scrollbars=no,menubar=no,resizable=yes');
return false" class="boton">Login</a>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Validando</title>
</head>
<body>
<center><h2> Validando Usuario, por favor espere.... </h2></p></center>
<script language="JavaScript" type="text/javascript">
window.opener.location.href ="TU_PÁGINA_OCULTA.HTML";
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
{
location.href=window
}
setTimeout ("redireccionar()",220);
</script><script type="text/javascript">
var pagina = 'PAGINA_DE_ERROR.HTML';
var segundos = 230;
function redireccion() {
document.location.href=pagina;
}
setTimeout("redireccion()",segundos);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment