PDA

Click to See Complete Forum and Search --> : WebBrowser Popups


Oct 5th, 2000, 05:16 PM
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?

Perhaps I could alter the IE registry settings? Or is there a neater way?

I've had quite a few questions on the matter... so wouldn't mind finding a solution.

Look forward to hearing your thoughts!

All the best,

---- Karlos

karl@karlmoore.com

[Edited by KarlMoore on 10-05-2000 at 06:21 PM]

parksie
Oct 5th, 2000, 05:19 PM
I think disabling scripting in the registry settings should be enough, although if IE is up already it will clobber that one.

PS: I don't think I'm going to have much time for you-know-what at the moment (sorry) :(

Oct 5th, 2000, 06:24 PM
Take a look at this thread (http://forums.vb-world.net/showthread.php?threadid=22994) for how to stop Webbrowser popup windows.

Oct 6th, 2000, 07:09 PM
Super... thanks for that!

But a quick follow-up question - how about turning off scripting, such as JavaScript code? And what about stopping a Flash animation from running on a page?

I essentially want the text and *just* the text.

A way of controlling the actual images - 'turning off' all pictures in the WebBrowser control *only* (no other IE windows) - would also be great to know.

Thoughts?

Thanks muchly!

--- Karlos

Elanor Memphis
Oct 7th, 2000, 05:10 PM
[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