Re: detecting whether frame is top one and in case it isn't redrawing
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: detecting whether frame is top one and in case it isn't redrawing

From: </dev/null@localhost.ld>
Date: Tue Nov 29 2005 - 23:17:01 CET

Don't try to be funny. I tried many versions including string in 1st example, in second obvoiusly should be "!=" (which still doesn't work).
I would appreciate some serious reply.

Lee wrote:

> /dev/null@localhost.ld said:
>
>>I tried soemthing like:
>>
>>if (top != self) top.location.href = self;
>
>
> So if this window is not the top, set the value of top.location.href (a string)
> equal to self (a Window object).
>
>
>>or
>>
>>if (window == top) top.location.replace("index.html");
>
>
> if this window IS the top, replace its location with "index.html".
>
> Keep us posted on what else you think of.
>
Received on Sat Dec 3 04:32:58 2005