Foros del Web » Programando para Internet » Javascript »

El JavaScript de if(top !=self) no se hacerlo funcionar

Estas en el tema de El JavaScript de if(top !=self) no se hacerlo funcionar en el foro de Javascript en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 24/07/2003, 21:02
 
Fecha de Ingreso: julio-2003
Ubicación: Puerto Rico
Mensajes: 6
Antigüedad: 20 años, 9 meses
Puntos: 0
Exclamación El JavaScript de if(top !=self) no se hacerlo funcionar

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/univisionpr/portal/search_index.html.

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

GRACIAS ANTICIPADAS

Última edición por LuisGenius; 24/07/2003 a las 22:17
  #2 (permalink)  
Antiguo 03/03/2008, 16:29
Avatar de GERMANCIN  
Fecha de Ingreso: junio-2004
Mensajes: 151
Antigüedad: 19 años, 10 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
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:51.