Welcome to WebmasterWorld Guest from 54.167.62.170

Forum Moderators: open

Message Too Old, No Replies

window.scroll problem

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

New User

10+ Year Member

joined:Dec 29, 2004
posts:28
votes: 0


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

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

New User

10+ Year Member

joined:Dec 29, 2004
posts:28
votes: 0


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