Forum Moderators: open

Message Too Old, No Replies

window.scroll problem

         

tores

8:35 am on Jan 6, 2005 (gmt 0)

10+ Year Member



Hi.

I'm using window.scroll to scroll to a certain place in a frame. But, for some reason, it doesn't work. A simple statement like window.scroll(0, 100); doesn't render any effect... Does anyone have a clue to what's causing this?

regards tores

tores

10:32 am on Jan 6, 2005 (gmt 0)

10+ Year Member



1. Use scrollTo instead, as scroll is deprecated.
2. "This method is only useful where there are areas of the document not viewable within the current viewable area of the window and the visible property of the window's scrollbar must be set to true (enabled)". This means that putting scrollTo before a page is populated is useless. The scrollTo method should be the last thing executed on a page.

Regards tores