Содержание

GetElementsAttribute

Gets an array of values ​​of the specified attribute of specified elements

Syntax

function GetElementsAttribute(aElements: TCSElements; aAttribute: string): array of string;

Parameters

Returned value

Examples

  1. //Loading page google.ru
    LoadURI('google.ru');
    //Get an elements array "div"
    var elements:=GetElements('div');
    //Get an array of attribute "id" values of elements array.
    var ids:=GetElementsAttribute(elements,'id');