如何保证WebBrowser一直在页面内跳转

private void webBrowser1_NewWindow(object sender, CancelEventArgs e) {
 
webBrowser1.Url = new Uri(((WebBrowser)sender).StatusText);
 e.Cancel = true;
 
}
原文地址:https://www.cnblogs.com/codeDevotee/p/10225828.html