[thelist] breaking out of someone else's frameset
Eric Engelmann
eric at geonetric.com
Thu, 2 Dec 1999 20:08:45 -0600
One alternative to:
if (window != top) top.location.href = location.href;
is:
if (window!=top) top.location.replace(document.location.href);
since using the replace function won't mess with your back button at all (it
replaces that page in your history instead of forwarding you to a new page).
That way, no one gets stuck in the JS redirect so thier back button doesn't
work. That's gotta be one of the top 10 most annoying things in web
design... Is that a new thread in and of itself? ;-)
- Eric