哈哈,自己解决了
private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
pagecounter++;
IHTMLDocument2 vDocument = (IHTMLDocument2)webBrowser1.Document.DomDocument;
vDocument.parentWindow.execScript("function confirm(str){if(str== '您真的要删除吗?')return true;} ", "javascript");
}
private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
pagecounter++;
IHTMLDocument2 vDocument = (IHTMLDocument2)webBrowser1.Document.DomDocument;
vDocument.parentWindow.execScript("function confirm(str){if(str== '您真的要删除吗?')return true;} ", "javascript");
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货