Advertisement
2002VB Internet/ HTML #18819

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.

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
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
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine