ABOUT US

|

SUPPORT

|

BLOG

DOWNLOADS    

 

 

 

 


 

 

Handling popup windows

 

 

 

 

 

 

Popup windows can be both useful and irritating. Some internet sites rely on the use of popup windows to capture critical information, whilst other popups can be used to display advertising. WebRenderer has factored both of these issues into account opening up methods to both block and customize popup windows.

 

 

 

 

 

Blocking all popup windows

 

 

 

 

 

IBrowserCanvas browser = BrowserFactory.spawnMozilla();
// Block all popup windows
browser.allowPopups(false);

 

 

 

 

 

Customizing popup windows

 

 

 

 

 

browser.addWindowListener(new WindowAdapter() {
        public void onNewWindow(WindowEvent e) {
                // Popup window event has been fired
        }
});

 

 

 Copyright © JadeLiquid Software - www.jadeliquid.com