I am trying to get HTML inside an HTMLElement that has an id of "block". I tried:
If webbrowser1.document.getelementbyid("block") isnot nothing then MsgBox(webbrowser1.document.getelementbyid("block").innerHTML) end if
But he continues to throw a NullReferenceException and tells me to check if it is null / nothing, which I am doing.
So, how to check if an element exists in an HTML document with a specific identifier?
source share