How do I Scroll parent page to top when child page is click within iframe?

Posted by Evan on Stack Overflow See other posts from Stack Overflow or by Evan
Published on 2010-06-17T19:19:27Z Indexed on 2010/06/17 19:23 UTC
Read the original article Hit count: 274

Filed under:
|
|
|
|

Hello,

When someone clicks on a link within an iframe (child page), how do I get the parent page to scroll to the top? The issue is the child page will remain in the same spot of the page, because the iframe has a lot of height larger than the parent page.

Please note: the parent and child pages are on different sub domains.

I created a demo to show this: http://www.apus.edu/_test/iframe/index.htm

© Stack Overflow or respective owner

Related posts about iframe

Related posts about scroll