Disable Alert popups

Posted on 2012-09-13
Last Modified: 2012-09-14
I'm using the SHDocVw.InternetExplorer (iwebbrowser2) object.   Is there way to disable/turnoff all Javascript Alert popups?
Question by:HLRosenberger
    LVL 40

    Accepted Solution

    Being able to do that from code would be a nice security hole. Any application could disable the alerts and then start running malicious code on the computer. This can thus be done only manually by the user in his InternetExplorer options.
    LVL 75

    Assisted Solution

    by:Michel Plungjan
    James: the iwebbrowser is not a normal browser but one controlled by .NET
    LVL 1

    Author Closing Comment

    LVL 75

    Expert Comment

    by:Michel Plungjan
    Thanks for what? Did we help you in any way?

    Not being ungrateful, but I was just wondering
    LVL 40

    Expert Comment

    by:Jacques Bourgeois (James Burger)
    mplungjan: sorry to contradict you.

    The first line of the documentation page for SHDocVw.InternetExplorer (, clearly states that it Controls an instance of Windows Internet Explorer through automation.

    This control in simply a wrapper over Internet Explorer, so it follows all the rules set in the IE options.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    #Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now