Note: Advice in this article will only work for DotNetBrowser 1.
See the corresponding article for DotNetBrowser 2 here.

Any web page can display pop-up windows using JavaScript function. For example:"", 
    "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

DotNetBrowser API provides PopupHandler class to customize handling pop-up windows creation. To customize popup-windows you must register your own implementation of PopupHandler depending on GUI Toolkit you use in your .NET application. Refer to:

Disable Popups

By default popup windows are enabled for both BrowserView implementations. To disable popup windows you must create your own implementation of PopupHandler and return null from the HandlePopup() method as shown below:


public class SamplePopupHandler : PopupHandler
    public PopupContainer HandlePopup(PopupParams popupParams)
        return null;


Public Class SamplePopupHandler
    Implements PopupHandler
    Public Function HandlePopup(popupParams As PopupParams) As PopupContainer Implements PopupHandler.HandlePopup
        Return Nothing
    End Function
End Class



browser.PopupHandler = new SamplePopupHandler();


browser.PopupHandler = New SamplePopupHandler()