open new tab in Safari IOS 13.3

3.4k Views Asked by At

Good day,

I was trying to open a new tab in Safari IOS 13.3 using javascript (mobile), but no luck.

I'am trying this: a href="#" onClick="window.open(url, '_blank')", however, it is not working on SAFARI, but working in Chrome.

Need some help. Thanks

1

There are 1 best solutions below

0
On

You can use attribute target=_blank in anchor tags. https://www.w3schools.com/tags/att_a_target.asp

For example:

<a href="https://www.google.com" target="_blank">Click here to open Google</a>