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
posted @ 2012-04-12 11:29 咸鱼公子 Views(5407) Comments(0) Diggs(1) Edit