You are here: Re: IFrame « HTML « IT news, forums, messages
Re: IFrame

Posted by Disco Octopus on 10/23/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация