Hello,
how do I enable 'setJavaScriptCanOpenWindowsAutomatically' for Android views?
I have to open external webpages with javascript in a NEW (browser-)window.
Window open does not work:
window.open(str_newUrl, "_blank");
Workaround does not work either:
var link = document.createElement('a');
link.setAttribute('href', href);
link.setAttribute('target','_blank');
var clickevent = document.createEvent('Event');
clickevent.initEvent('click', true, false);
link.dispatchEvent(clickevent);
return false;
On iOS both versions are opening external webpages in a new browser-window.