Removes the child elements of the specified element corresponding to the specified tag.
removeElementsChildren = function(aElements, aTagName);
//loading the page google.ru with request loadURI('https://www.google.ru/#newwindow=1&q=test+request'); //Get the elements h3 var elements = getElements('h3'); //Remove the child links removeElementsChildren(elements,'a');