wbBrowser.NewWindow +=new CancelEventHandler(wbBrowser_NewWindow);  
  
private void web_NewWindow(object sender, System.ComponentModel.CancelEventArgs e)
{
    string url = web.Document.ActiveElement.GetAttribute("href");
    if (url != string.Empty)
    {
        web.Navigate(url);
    }
    e.Cancel = true;
}