单一ok按钮弹窗和yes/no按钮弹窗如何编程处理

解决方案 »

  1.   

    需要取得句柄,单纯的用webbrowser是完成不了
      

  2.   

    可以配合网页嵌入的VBScript进行操作,如果不是您自己的,比较困难,但有变通的方法,例如检验网页文本,但同时难度也就会增大
      

  3.   

    You need to implement IDocHostShowUI and capture the Javascript alert and 
    confirm message boxes in the ShowMessage method. a VB.Net sample can be found at
    http://www.faisoncomputing.com/samples/programming_samples.htmI am not sure this can be done in VB6 or not, but I suggest use the VC/MFC solution if you are not ready for .Net .See also
    http://blog.csdn.net/jiangsheng/archive/2004/07/06/35567.aspx
    http://blog.csdn.net/jiangsheng/archive/2004/11/07/170742.aspx