I'm trying to get to level 6 of the children, but there is a problem. Level 5 is not an element. That is, level 4 has no children. Literally 5 level "#document" .
I tried to format it as a document, but an error appears that the method is not supported.
chelement4 - these are the elements of level 4
doc := chelement4.document as IHTMLDocument2; DocSch := doc.all as IHTMLElementCollection; for inde := 0 to DocSch.Length - 1 do begin Elementhtm := DocSch.item(inde, 0) as IHTMLElement; memo1.lines.Add('дочерние 5ый уровень ' + Elementhtm._classname + Elementhtm.tagName); end;
var frameDocument = document.getElementById('myframe').contentWindow.document. Look for an analogue of thecontentWindowfunction in Delphi. And the frame itself must be loaded. I have no idea whether dolphies are loading frames. - Sergey