-
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
[email protected]
[Edited by KarlMoore on 10-05-2000 at 06:21 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) :(
-
Take a look at this thread for how to stop Webbrowser popup windows.
-
Super!
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
-
[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