设置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"));
}