Changing iframe within iframe...
Posted on 2005-04-11
I have an iframe that uses local anchors as such:
<!-- main page -->
<H1>Please click on a link to scroll down to the appropriate chapter:</H1>
<iframe src='/books/md.htm' id='contentpane'></iframe>
<!-- iframe content md.htm -->
<A href='#Chapter_Two'>Skip to the next chapter</A>
Call me Ishmael. Some years ago- never mind how long precisely- having ....
<A href='#Chapter_Three'>Skip to the next chapter</A>
I stuffed a shirt or two into my old carpet-bag, ....
.....and the great shroud of the sea rolled on as it rolled five thousand years ago.
My problem is that when I click on the local anchors within the iframe, the entire page gets replaced by the content instead of just the iframe. So I lose this line: "<H1>Please click on a link to ..." I have no idea why the iframe takes over the entire page.... Also at one point, when I refeshed the page using "F5", the top part of the page flashed before being replaced by the iframe...
Any ideas what is going on here?