block popup in htmldocument
hi guys
I'm loading a htmldocument on the fly but I want to block all popup if possible...
thanks
Code:
Dim objMSHTML As New MSHTML.HTMLDocument
Dim objDoc As HTMLDocument
'load page
Set objDoc = objMSHTML.createDocumentFromUrl(txtAddress, vbNullString)
Re: block popup in htmldocument
Are you using a Webbrowser control? You could use the NewWindow2 event to block pop-ups...
Re: block popup in htmldocument
Just block everything for 1/2 second or so.
Re: block popup in htmldocument
no I'm not using control, it is loading on the fly using createDocumentFromUrl