Results 1 to 3 of 3

Thread: [resolved] javascript alert.. During navigation (webbrowser control)

  1. #1

    Thread Starter
    Addicted Member jalexander's Avatar
    Join Date
    Jan 2011
    Location
    Memphis, TN
    Posts
    160

    Red face [resolved] javascript alert.. During navigation (webbrowser control)

    Needed a way to handle JavaScript Alert pop-ups on webpages when using the WebBrowser Control in VB 2010. I did some research on google & found it pretty easily I'm ashamed to say.
    So I decided to close this thread.

    THANKS!
    Last edited by jalexander; Oct 18th, 2012 at 11:18 PM. Reason: researched on google & finally found answer
    dim jenn as geek = true
    Learning ~ Visual Basic 2010 ~ in free time between college/work -
    currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
    have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
    i am totally super motivated & promise to make an effffin amazing protege!!! #swag

    | -_-_- -_-_- |
    ...W.T..F!?.....
    ||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,370

    Re: Dealing with MsgBox popup on webpage.. During navigation (webbrowser control)

    To disable popup's entirely in a webbrowser control you can simply handle the newwindow event. This will remove the pop ups all together.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Dealing with MsgBox popup on webpage.. During navigation (webbrowser control)

    Quote Originally Posted by dday9 View Post
    To disable popup's entirely in a webbrowser control you can simply handle the newwindow event. This will remove the pop ups all together.
    A JavaScript 'alert' window is not a popup. A popup is a new browser window.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

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