Hi, I have been using the following:
[I]<script language=”JavaScript”>
<!–
if (parent.location.href == self.location.href) {
window.location.href = ‘my_index.html’;
}
// –>
</script>
I have made a site using iframes (our server does not support .php ssi etc etc..). My problem is that I have made a homepage with all the navigation etc on it, and subsequent sub pages with plain content (no navigation). Should the user get to a sub page e.g. via a search engine, they would not get the homepage layout, just the content.
I used the above code to try auto re-direct the sub-page to the homepage if it is landed on without the homepage. The problem is that it loads the iframe src (as defined in the iframe code), instead of loading the page that was landed on. I was wondering if there is a way (similar to target=”x_iframe”) to load the current page into the iframe of the main homepage?
I hope I have explained myself clearly! ?
Thanks for any help!