Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/03/2008, 16:29
Avatar de GERMANCIN
GERMANCIN
 
Fecha de Ingreso: junio-2004
Mensajes: 151
Antigüedad: 20 años, 9 meses
Puntos: 0
Re: El JavaScript de if(top !=self) no se hacerlo funcionar

Cita:
Iniciado por LuisGenius Ver Mensaje
Necesito ayuda con el siguiente JavaScript:


<script language="JavaScript" type="text/javascript">
if( top != self )
top.location.href = self.location.href;
</script>


Como lo puedo hacer funcionar:

la dirección top es: http://www.network54.com/Realm/univi...rch_index.html.

La dirección self sería: http://www.univision.com/content/channel.jhtml?schid=12

GRACIAS ANTICIPADAS


Es que el codigo es asi:

if (top != self) top.location.href = location.href;

y tu lo tienes asi:

if( top != self ) top.location.href = self.location.href;
__________________
Ineternet Business