'window.open() in button inside a web view app not working only on ios

I have created a web view app in swift. There I came up with one issue that following click event is not working.

<button onclick=" window.open('https://www.google.com/','_blank')"> click + </button>

It seems to be only window.open() having that issue in ios devices for the ios app. Any way to fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source