|
-
Oct 7th, 2000, 05:10 PM
#5
New Member
[QUOTE]Originally posted by KarlMoore
[B]Hey there Gang!
Hmm, wonder if any of you supercool boffins could help me out on a lil' teaser here...
If I have the WebBrowser control on a form, is there any way to stop popups on a site opening in a new browser window? And how about stopping all page scripting too?
Try the cancel in the newWindow event from the webbrowser control.
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim f As New frmBrowser
Set ppDisp = f.WebBrowser1.object
f.WindowState = 0
Cancel = true
f.Show
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|