
Originally Posted by
Riba
I am trying to make a content of a iframe always scrolled all the way to the bottom.
If you really mean always, then you'd be better off reorganising the content (reversing it) so that the scrolling isn't necessary.
document.scrollbypages(1)
There's a scrollByPages method on the global (window) object, but not on the document.
And it does work beautifully, except for the fact that it seems to be working in FireFox only (and Mozilla I'm assuming). It doesn't seem to work in Safari and Opera. [...] Is there something obvious that I'm missing?
It's a proprietary method that is implemented by Gecko-based browsers, but not likely anything else.
Is there maybe a better way to accomplish the same effect?
The best way is to restructure (as I said previously). You could try putting an anchor in the framed document then executing:
Code:
location.hash = '#the-anchor';
at the end of the document, but I think that's a nasty solution, too.
Mike
Bookmarks