View Full Version : iframe causes parent to scroll

04-12-2007, 08:14 AM
Is there a way to stop the parent frame from automatically scrolling back to it's original position when something is clicked in an iframe.

The problem is: I have an iframe with lots of of links in it. When someone clicks on a link, it gets loaded into the iframe...which is fine, but the parent frame scrolls to the left everytime something is clicked in the iframe.

How do I stop the scrolling???


04-12-2007, 01:50 PM
What you're describing is usually a problem only with iframes that have named anchor tags
(ie <a name="whatever"><a href="#whatever">)

What's the URL of the page where it's happening.?

04-12-2007, 05:34 PM
I figured it out.:)

06-18-2007, 03:11 PM
I figured it out.:)

I also have this problem. How about posting some working code or a description of what you did to help the rest of us out???