ScrollTo (Webpage) is Broken

Its reported as bug 67913.

Searching through the forms I find some scroll to weblistbox javascript work arounds.

But no webpage ones.

My JavaScript is nonexistent. Does anybody have the JavaScript chops to help out?

Try this:

ExecuteJavaScript("window.scrollTo(0,0);")

or if you want a “smooth” scroll:

ExecuteJavaScript("window.scrollTo({top:0,left:0,behavior:'smooth'});")

Note: it could be window.scroll too

1 Like