WebBrowser屏蔽alert是用重定义alert,confirm实现的。比较简单。代码如下添加 com 引用 microsoft html object libraryusing mshtml;private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e){IHTMLWindow2 win = (IHTMLWindow2)webBrowser1.Document.Window.DomWindow;string s = @"function confirm() {";s Read More