I have a site where the default page has an IFRAME, into which all other pages are loaded.
As a result, whenever you link directly to one of these other pages (ie from a search engine), you don't see the functional part of the site - the surrounding frameset.
I would like to build a javascript function to detect whether or not the current page is within the correctly named frameset.
If not, I would like it to open the frameset page and change the IFRAME's src to its own URL, before closing itself (maybe theres a more elegant way to do this)
Anyone have any Ideas or useful links - I don't even know where to start - I'm learning JavaScript and I'm not too familiar with the DOM.
ps this only has to work in IE4+ NS6 as I have an alternate sites for other users
I thank you all in advance..
Tels Mixed Linux/Win2000 Network Administrator
As a result, whenever you link directly to one of these other pages (ie from a search engine), you don't see the functional part of the site - the surrounding frameset.
I would like to build a javascript function to detect whether or not the current page is within the correctly named frameset.
If not, I would like it to open the frameset page and change the IFRAME's src to its own URL, before closing itself (maybe theres a more elegant way to do this)
Anyone have any Ideas or useful links - I don't even know where to start - I'm learning JavaScript and I'm not too familiar with the DOM.
ps this only has to work in IE4+ NS6 as I have an alternate sites for other users
I thank you all in advance..
Tels Mixed Linux/Win2000 Network Administrator