Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking w/IFRAME

    When linking inside an iframe,

    for example :
    <a href="#anchor_1">Click here to go to anchor one.</a>
    <a name="anchor_1"></a>
    ANCHOR ONE
    BLAH, BLAH, BLAH

    anchor_1 "jumps" to the top of the iframe window as well as the parent window containing the iframe.

    Is there any way to only have it jump to the top of the iframe and not affect the parent window?

    This probably should go in the HTML section, but I think I'll have to use JavaScript in order to answer my question.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    as well as the parent window containing the iframe.
    Normally it should not do that. If so, that means either:
    - you have an anchor with the same name in parent, which is not correct
    or
    - you have no anchor with this name, so that automatically the page is scrolled up.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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