Forum Moderators: open
I should know how to do it but im having a go slow.
However, unless these are server side scripts?
if (parent.location.href == self.location.href) { holder page --> window.location.href = '../index.html'; }
Basically a redirect if someone hits a frame.
Afaik, you can't do server side redirects with javascript, because the script gets executed by the client.
For your purpose, it might be best with an asp, asp.net, cfm, or perhaps Perl or PHP script.
It has worked before so I'm just wondering why it isnt now. I'll figure it out and tell you when I have.
i think that the trailing script comment should be taken out, and the logical test should be!= then set the location using parent.location=