|
-
Oct 5th, 2000, 05:16 PM
#1
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]
-
Oct 5th, 2000, 05:19 PM
#2
Monday Morning Lunatic
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)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 5th, 2000, 06:24 PM
#3
Take a look at this thread for how to stop Webbrowser popup windows.
-
Oct 6th, 2000, 07:09 PM
#4
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
-
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
|