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]
|