views:

8

answers:

1

Is it possible to scroll(0,0) to the top of the parent page when the user browses in an iframe. For example we have an iframe that is the entire height of the page with search results. When you click the next page button in the iframe, the focus stays at the bottom of the page.

I'm not even sure if is possible to detect this. The iframe src value doesn't actually change.

P.S. I don't know why this site must use an ifram, but IE6 is a the standard browser so I didn't ask questions.

+1  A: 

Actually, the onload event does appear to work when navigating within an iframe.

<iframe src="http://mysite.com" height="2392px" width="100%" name="searchFrame" onload="scroll(0,0);"></iframe>
spyderman4g63