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
You need to make the code in the subpages append their name to the 'index.html', e.g.
if (top.location == self.location) {
top.location = 'index.html?' + location.href;
}
...and put another Javascript on the index.html page which checks for the part after the question mark, e.g.:
By the way, you need to give your target frame a name like this: