Viewing 1 replies (of 1 total)
  • Thread Starter Jeremiah

    (@jprummer)

    I ended up finding (two weeks later) the answer to this question. I took it from Nate’s answer here – https://stackoverflow.com/questions/6596668/iframe-on-the-page-bottom-avoid-automatic-scroll-of-the-page/7148477#7148477

    I used:

    <iframe style="position: absolute; top: -9999em; visibility: hidden;" onload="this.style.position='static'; this.style.visibility='visible';" href="..."></iframe>

    It seems to have completely eliminated the scrolling issue.

    Here was Nate’s quote:

    Here we’re basically saying hiding the frame and moving it to a negative offset on the page vertically. When it does try to focus the element inside of the frame, it should scroll the page upward, then once loaded place the iframe back in it’s intended position.

Viewing 1 replies (of 1 total)
  • The topic ‘Page Load Affected by iframe’ is closed to new replies.