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

Note: by default, pop-up windows are enabled and displayed in both Swing and JavaFX UI toolkits.

JxBrowser API provides the PopupHandler class to handle pop-up windows creation. To handle pop-up windows creation you must register your own implementation of PopupHandler depending on GUI toolkit you use in your Java application. To get more information about how to handle pop-ups in Swing and JavaFX toolkits take a look at the following articles:

Disabling Popups

To disable pop-up windows you must create and register your own implementation of PopupHandler and return null from the handlePopup() method as shown below: 

browser.setPopupHandler(new PopupHandler() {
    public PopupContainer handlePopup(PopupParams params) {
        return null;