Links in IHTMLDocument2

571 views Asked by At

I use IHTMLDocument2 to retrieve strings with innertext in TD Tag and I have links to recover but I do not find how using an innerhtml I see my link but I do not know how to retrieve it.

My HTML

<td class="hidden-sm hidden-xs">
    <a href="** My URL **">
        <i class="fa fa-cube" aria-hidden="true"></i>**My Title**
    </a>
</td>

in innerhtml I have as a result <a href="** My URL **"> <i class = "fa fa-cube" aria-hidden = "true"> </ i> ** My Title ** </a> I want to recover the contents of the 'href'

My code

for i := 0 to doc.body.all.length  do
  begin
       el := doc.body.all.item(i);
       if (el.tagName = 'TD') then
       Begin
            Title := el.innerText;
            URL := el.??;
0

There are 0 answers