When I try to handle the link click of the html below, WKWebView only opens a blank page. I don't know how to handle the location.href, which causes no call in the swift code. Delegates are set:
<div><a href="javascript:wopen();">OPEN</a></div>
<script>
function wopen() {
var newWindow = window.open('', '_blank');
setTimeout(function () {
newWindow.location.href = 'https://stackoverflow.com';
}, 2000);
}
</script>