Click to See Complete Forum and Search --> : can someone explaine this small bit of code


damon2003
12-17-2003, 10:41 AM
Hi,
can someone tell me ehat exactly the code below does,
thanks



<!-- Begin
if (parent.location.href == self.location.href) {
// change the url below to the url of the
// frameset page...
window.location.href = 'index.html';
}
// End -->

ray326
12-17-2003, 10:43 AM
It trying to force you back into frames if you've tried to escape them.

damon2003
12-17-2003, 10:46 AM
yea thanks,
I tried using a php header location to link to a framed page and its not working at the moment.
How do you mean escaping the frame? Does this just mean trying to link to a page outside the current site?