conception_native_0123
Well-known member
- Local time
- Today, 07:30
- Joined
- Mar 13, 2021
- Messages
- 1,923
in VBA, this is all that is needed in order to extract an 'a' tag's hyperlink address using internet explorer:
so for this code:
my code gets this:
but should it not get this instead?
my code is asking for the 'a''s value, not the HREF, which is what is technically being returned. HREF is a property of the element 'a', so I would assume that more code would be needed. I'm just curious. anyone else done this? thanks.
Code:
aTagVal = ie.Document.getElementsByTagName("a")(0)
HTML:
<a href="https://rachael-adamiak.square.site" target="_blank">View Website</a>
Code:
https://rachael-adamiak.square.site
Code:
View Website