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
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