detecting whether frame is top one and in case it isn't redrawing it as top
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

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

From: </dev/null@localhost.ld>
Date: Tue Nov 29 2005 - 22:21:42 CET

I tried soemthing like:

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

or

if (window == top) top.location.replace("index.html");

doesn't work.

tia.
Received on Sat Dec 3 04:32:57 2005