Skip to main content

ElementSetScrollPercentage

Callable

  • ElementSetScrollPercentage(ElementOrId, scrollPercentage, scrollBehavior): void

  • Sets the scroll position of an element to a specified percentage of its scrollable content. Ideally scroll percentage should be gotten with ElementGetScrollPercentage


    Parameters

    • ElementOrId: ElementOrId
    • scrollPercentage: number
    • scrollBehavior: ScrollBehavior = 'auto'

    Returns void