Forum Moderators: open
Currently if I use an anchore it goes to the anchor spot but I loose the upper part of my page and there is only the iframe left. I want the anchors to work as they would in a normal html page.
I tried some code that was on a previous thread but it did not fix my problem.
Any advice would be great.
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
Once you click on the first link it will take you to the anchor but the top of the page disappears and I'm left with only the iframe.
faqs.htm contains the iframe code and faqs2.htm holds all the content and anchors for the page(hope this helps).
[edited by: tedster at 11:02 pm (utc) on Aug. 22, 2005]
A. If they are in faqs.htm, then make sure there is an target="iframename" attribute in each <a href> tag
B. If they are in faq2.htm, they naturally will scroll off screen in order to scroll to the named anchor position. So, at least two ways to approach it:
1. Make sure there's a "top" link next to every answer, so users can click back to the list of links.
...or
2. Move the links into the main (parent) page and procede with target attributes in the tags, as in A above
The links are on faqs2.htm therefore, I put a top link/anchor to faqs.htm#top after every answer with the target=parent. Place the anchor next to the top menu on faqs.htm and it's pops me backup to where I need to be to see the full page again.
Thanks again for the advice...it helped.