Auto scroll contents of an iframe

Discussion in 'Programming' started by byteventures, Dec 4, 2008.

  1. #1
    Sorry for the confusing title. I have an iframe which contains an image at the top, and at the bottom there is a registration form. Unfortunately, the image takes up the top half of the iframe, so I want to be able to automatically scroll down to the registration form when the iframe page loads. I know exactly how far down the page needs to scroll, but I am unsure how to do this. Does anyone know if you can do this using javascript? (FYI: I cannot control the html page within the iframe.)

    Thanks in advance to those who offer to help.
     
    byteventures, Dec 4, 2008 IP
  2. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #2
    happpy, Dec 5, 2008 IP
  3. byteventures

    byteventures Guest

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the tip - I'll give it a shot.
     
    byteventures, Dec 7, 2008 IP
  4. byteventures

    byteventures Guest

    Messages:
    200
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, maybe I forgot to say that I do not control the registration page. I have third parties that provide event registration forms, and most are at the bottom of the page. The pages load in an iframe and I have no control over the div tags in their registration pages.

    Does anyone have another idea on how to scroll to the bottom of an iframe after the content has loaded?

    Thanks again for your help.
     
    byteventures, Dec 10, 2008 IP