WebPage.ScrollTo

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

WebPage.ScrollTo(x as Integer, y as Integer)

New in 2012r1

Supported for all project types and targets.

Scrolls the window to the specified coordinates.

Notes

This sets the scroll position for ALL WebPages.

Example

This code scrolls to the top of the window.

Self.ScrollTo(0, 0)