Содержание

scrollToElement

Scrolls the page to the specified element.

Syntax

scrollToElement = function(aElement, aScrollMethod);

Parameters

Returned value

Examples

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