Disables IE popup windows by using an VB Front-end browser and redirecting the popup window to a second invisible webbrowser control.
Submitted On | |
By | Karl J. Sak |
Level | Beginner |
User Rating | 4.0 (16 globes from 4 users) |
Compatibility | VB 5.0, VB 6.0 |
Category | Internet/ HTML |
World | Visual Basic |
Archive File |
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