DarkKodiak
Programmer
Hi,
I have a site that uses frames. I dont want any of my pages to be orphans. I am trying to write a script that determines if a page is in or not in a frame. So far I am doign this:
if (top.location==self.location)
{
frame this page code goes here.
}
This sort of works, but even when the page is framed the if statement returns true...what am I doing wrong?
I have a site that uses frames. I dont want any of my pages to be orphans. I am trying to write a script that determines if a page is in or not in a frame. So far I am doign this:
if (top.location==self.location)
{
frame this page code goes here.
}
This sort of works, but even when the page is framed the if statement returns true...what am I doing wrong?