windows,juce Demo .the WebBrowserDemo
There are something I don’t understand
sometimes,when click a hyperlink ,the “DemoBrowserComponent” will
call pageAboutToLoad(XXX),make Textbox changes,and goToURL(XXX).
thats OK.
BUT, sometimes when click on a hyperlink,the page will be displayed in a new IE window,
not the juceWebBrowser.Why IE opened ?why no one call pageAboutToLoad() ?
Well, whether the embedded browser chooses to invoke the callback is really up to its discretion… I certainly have no idea how IE makes its mind up what to do when a link is clicked, I’m afraid!
“… You can intercept an event, DWebBrowserEvents2::NewWindow2, in your IDispatch implementation to control this. Your control needs to connect to the DWebBrowserEvents2 connection point to intercept this event.”
You should be able to do the same thing with the WebView in Osx.
I know that Jules added a web browser for iOS too lately, but unfortunately I’m not familiar with any of them.