Code: Select all
window.open(url,'_blank');
If I open my page in the browser and execute the above code, it opens a new tab or new window (depending on the user preference).
But I open the same page in wxWebView and execute the above code, nothing happens.
I did not find any wxWebViewEvent that is triggered when a new tab or windows is requested.
Avaialable events:
Code: Select all
wxEVT_WEBVIEW_NAVIGATING
wxEVT_WEBVIEW_NAVIGATED
wxEVT_WEBVIEW_LOADED
wxEVT_WEBVIEW_ERROR
wxEVT_WEBVIEW_NEWWINDOW
wxEVT_WEBVIEW_TITLE_CHANGED