Results 1 to 4 of 4

Thread: iframe causes parent to scroll

  1. #1
    Join Date
    Apr 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iframe causes parent to scroll

    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???

    Thanks,
    Kim

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.?

  3. #3
    Join Date
    Apr 2007
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    I figured it out.

  4. #4
    Join Date
    Dec 2006
    Location
    Near Derby, UK
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Post working code?

    Quote Originally Posted by kimberlyhello View Post
    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???

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •