1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ScrollTo in an iFrame?

Discussion in 'HTML & JavaScript' started by Strygwyr, May 3, 2010.

  1. Strygwyr

    Strygwyr Junior Member

    Joined:
    Apr 23, 2010
    Messages:
    154
    Likes Received:
    1,462
    Location:
    Canada
    Basically I have an offer in an iframe on my site. I need to load that offer site in the iframe so that a specific part of it shows up (the email and submit button).

    I found this: document.frames['IFRAME_ID_HERE'].scrollTo(0, 200);

    But what code do i need before and after that? And where exactly does it go? And will this work!?

    :confused: