Posted by Disco Octopus on 12/05/89 11:23
Spartanicus wrote :
> "Disco Octopus" <discooctopus@yahoo.com> wrote:
>
>> Here is the javascript method. in my opinion a bit yuck, but when i was
>> testing this type of stuff (long long ago), i found that it was just
>> one of those things that was nice to know how to do........
>>
>> in your child page (IFrame) put this in it....
>>
>> <script type="text/javascript">
>> function iamchild(){
>> if (top.location.href.indexOf("name_of_main_page.html") < 0){
>> top.location.replace("name_of_main_page.html");
>> }
>> }
>> </script>
>> </head>
>>
>> <body onload="iamchild()">
>> ..........
>
> What's the point of that? It only redirects, you might as well stick the
> content into the "child page".
i dont understand what you are asking.
this is the answer i gave the OP when he asked how to do it in
javascript.
are you refering to the fact that irrelevant of the iframe opened, the
main page will only ever open the one iframe page? if you are, that
was not something that the OP was concerened about.
--
a beef jerky web site : http://www.choicebeefjerky.com.au
not a beef jerky web site : http://mycoolfish.com/vote.cmks
eating alone is medicinal
[Back to original message]
|