Posted: Fri Aug 10, 2007 10:46 am same-page links and iframes
I'm designing a new layout for my web site that utilizes an iframe. One of the pages to be viewed within the iframe contains different sections with a lot of text, and so I placed same-page links at the top of the page for better navigation. The problem that I am having is that when I click on one of these same-page links, the line of text that it jumps to is placed at the very top of the browser window, rather than just the top of the iframe window. Is there a code that I can use to make it so that only the iframe will scroll when I use a same-page link, and not the entire parent page? I hope that I described the problem clearly enough. Thank you.
Joined: 28 Feb 2007 Posts: 877 Location: Biloxi, MS
Posted: Wed Sep 05, 2007 9:03 pm
Not sure which will work for you, but if using a traditional doc type you might add to your links target="_self". Or give the iframe a name/id and try setting the links to specify it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum