![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/02/2012, 00:13
|
| | Fecha de Ingreso: julio-2009 Ubicación: La Plata
Mensajes: 233
Antigüedad: 15 años, 7 meses Puntos: 8 | |
Respuesta: Redireccionar pagina con condicion Si no me equivico, lo que quiere enzonotario es que el "BLOG1" sea únicamente accesible desde "BLOG2".
Entonces se podría hacer algo como:
BLOG1:
if(typeof(nomeredirecciones)=="undefined")//comprueva si la variable nomeredirecciones existe
{
window.location="http://BLOG2.net"
}
BLOG2"
<a href="http://BLOG1.net" onclick="JavaScript:nomeredirecciones=1">Enlace a BLOG1</a> |