You are here: Re: HTML page loads external frame « HTML « IT news, forums, messages
Re: HTML page loads external frame

Posted by Evertjan. on 06/20/06 19:23

Jonathan N. Little wrote on 20 jun 2006 in comp.lang.javascript:

>> ============= in first.html =============
>>
>> <script type='text/javascript'>
>> if (self == top) location.href='index.html?f=first.html'
>> </script>
>>
>> ============= in index.html =============
>>
>> select the f=filename by location.hash and load the iframe.
>>
>
> Better to do it with server-side and not depend on JavaScript

Sure, but it can be done clientside.


> index.php?f=first.html
>
> It is one of the nasty bit with frames,

There are no frames to break out if (self == top), not?

> (iframes included) and I guess
> to prevent breaking out of frames a non-javascript solution would be a
> rewrite in the .htacess file.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

 

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

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