Содержание

RemoveElementChildren

Removes the child elements of the specified element corresponding to the specified tag.

Syntax

procedure RemoveElementChildren(aElement: TCSElement; aTagName: string = '');

Parameters

Notes

Examples

  1. //loading the page google.ru with request
    LoadURI('https://www.google.ru/#newwindow=1&q=test+request');
    //Get the first element h3
    var element:=GetElement('h3', 0);
    //Remove the child links
    RemoveElementChildren(element,'a');