I am using frames on index.html file. On every page of the frame I have a code which checks if page is in frame, and if not, then redirect to index.html.
Now. I want to not only check if page is in frame and redirect to index.html, but also I want to open the page in one of the frames on index.html.
I have embedded the JS file with this code as of right now:
if (top.location == self.location)
{
top.location = 'index.html'
}
Is there any scripts you might know of?