We deliver our company product via an iframe. Because of this the iframe height parameter is set for 1000px to accommodate long pages without having to have a constant scrollbar (which the CEO forbade).
Here's the problem. Our Registration page has you scroll down below the fold to complete it. When you click "Submit" at the bottom of the page, the page changes to a "Registration Complete" page, which is considerably shorter. Short enough, in fact, that in certain browser windows the customer is stuck staring at a blank page and wondering what happened... This happens a couple of other times in the product, as well... longer pages with "submit" buttons at the bottom and then we're stuck.
Rather than extending the aforementioned pages to the full 1000px height, I would prefer to have the parent page scroll up to its top when the iframe page changes. Keep in mind, these are partner parent pages that I don't have control over.
I tried using <body onLoad="window.parent.scroll(0,0); " /> on the "Registration Complete" page, but that didn't work. Any ideas?
Moderator Note - see this 2010 thread: Need to Have Parent Scroll to Top When iFrame Opens [webmasterworld.com] [edited by: tedster at 11:24 pm (utc) on May 1, 2010]