How to click link in webbrowser
i am t开发者_如何学运维rying to click a div
a
link in the webrowser in vb6 without success, the structure of the link is like this
<a class="classname">
<div class="classname2"></div>
<span class="span">spantext</span>
</a>
You can navigate DOM from outside like this
WebBrowser1.Application.Document.all("id_or_name").Click
or you can execute JScript to do whatever you want from inside like this
WebBrowser1.Application.Document.parentWindow.execScript "id_or_name.click();"
精彩评论