Posted by jojo on 06/20/06 20:05
Silver wrote:
>>
>> Here is my question. I want that when someone types in the browser
>> addressbar the address www.mysite.com/first.html, then instead of
>> loading just the "first.htm" l file, I want to see the entire
>> "index.html" page and the "first.html" file loaded inside the iFrame.
>> Is it possible?
Evertjan. wrote:
[Yes]
> ============= 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.
>
For what reason do you need the hash? Its also possible to use SSI (if
available on the Server) and write into "index.html"
<iframe href="<!--#echo var="http_referer"-->"></iframe> (Don't worry
about the tag-looking construction in another Tag, this is just a
SSI-command which is replaced from the server before any browser has to
validate it)
Navigation:
[Reply to this message]
|