void (CefBrowser browser, CefFrame frame, CefRequest.TransitionType transitionType) { System.out.println("JBCefLoadHtmlTest.onLoadStarted: " + browser.getURL()); if (browser.getURL().contains("google")) { // cancel loading and start another one jbCefBrowser.getCefBrowser().stopLoad(); jbCefBrowser.loadURL("chrome:version"); } }