Bug 11623 - ScrollLeft/Top do not work on an onLoad event
Summary: ScrollLeft/Top do not work on an onLoad event
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.grotto11.com/scrolltest.html
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-16 18:38 PST by Brian Tiemann
Modified: 2007-03-15 00:13 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Tiemann 2006-11-16 18:38:43 PST
See the attached URL.

The body has an onLoad handler that tries to scroll the content pane to the right, using ScrollLeft. It doesn't do anything. But it does work if you use the same code on an onClick event, like on the "scroll it" link.

Note that this applies to document-level objects as well; if you try to scroll document.body in the onLoad, it doesn't work either.