Home Links in IHTMLDocument2
Reply: 0

Links in IHTMLDocument2

user961 Published in March 18, 2018, 1:41 am

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.


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

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
       el := doc.body.all.item(i);
       if (el.tagName = 'TD') then
            Title := el.innerText;
            URL := el.??;
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.296885 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO