Forum Moderators: open
I'm working on a site that uses frames (not my choice). There are times when I'd like to force one of the framed documents to scroll itself back to the top.
For some reason all the scrolly stuff just isn't happening. The scrollTop property is always 0 even when I've manually scrolled down, and the onScroll event won't fire even when I manually scroll. It's as if the browser thinks the document is always at the top even when it plainly isn't. BTW it's for IE5.0 only.
Does anyone have any clues about what might be going on here?
Thanks in advance.
There are times when I'd like to force one of the framed documents to scroll itself back to the top.
If you only want to scroll to the top of the page, would a named anchor work for you rather than script - and also be simpler?
I realize this suggestion doesn't address the oddity you've described. I assume you've checked your code to ensure that you are reading/writing the scrollTop value for the particular frame you want.
I did research this for a while and I can't find another mention of this phenomenon on the web.