Содержание

ScrollToElement

Scrolls the page to the specified element.

Syntax

function ScrollToElement(aElement: TCSElement;
  aScrollMethod: TCSScrollMethod = SM_WHEEL): boolean;

Parameters

Returned value

Examples

  1. //Obtain a random element with tag "img"
    var element:=GetElement('img');
    //Emulating scroll to the element
    ScrollToElement(element);