Results 1 to 5 of 5

Thread: WebBrowser Popups

  1. #1
    Guest

    Cool

    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]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    Take a look at this thread for how to stop Webbrowser popup windows.

  4. #4
    Guest

    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

  5. #5
    New Member
    Join Date
    Sep 2000
    Location
    Belgium
    Posts
    8

    Talking

    [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
  •  



Click Here to Expand Forum to Full Width