在webbrowser中点击链接后直接用计算机默认的浏览器打开新页面了,我想用另一个webbroser控件打开,该如何在newwindow中写?
e.Cancel = true
webBrowser1.Navigate(webBrowser1.Document.ActiveElement.GetAttribute("href"))
dim eles as HtmlElementCollection
dim ele as HtmlElement
eles= web.documnets.getelementbytagname("A")
for each ele in eles
if ele.outerhtml.indexof("特定的链接")>0 then
ele.invokemember("click")
exit for
endif
next
if ele.outerhtml.indexof("特定的链接")>0 then
ele.Focus
ele.invokemember("click")
exit fo
r
endif