mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)webBrowser1.Document.DomDocument;
doc.parentWindow.execScript("function confirm(str){return true}", "javascript");

 

 

 

参考:

https://bbs.csdn.net/topics/350058931

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-09-06
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-12-20
相关资源
相似解决方案