设置NewWindow 方法
private void webBrowser1_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel =true;
webBrowser1.Navigate(webBrowser1.Document.ActiveElement.GetAttribute("href"));
}
设置NewWindow 方法
private void webBrowser1_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel =true;
webBrowser1.Navigate(webBrowser1.Document.ActiveElement.GetAttribute("href"));
}
转载于:https://www.cnblogs.com/StudyLife/archive/2012/07/14/2591943.html