Tools Links Login

Disable IE Popup Windows

Disables IE popup windows by using an VB Front-end browser and redirecting the popup window to a second invisible webbrowser control.

Original Author: Karl J. Sak

Code

Private Sub Form_Load()
' navigate to a website, I suggest www.aol.com
WebBrowser1.Navigate "http://www.aol.com"
End sub
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
'this sets the popup window to another browser control
'in which webbrowser2.visible = false
Set ppDisp = WebBrowser2.Object
End Sub

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 90 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.