This should work on safari as well, but you can add a target to the link by adding target="_blank". This opens the link in a new tab and should also open in a new window on safari. Here is an example:
<a href="https://example.com" target="_blank">Link text.</a>
In your case wrap the input in a link:
<input
id="googleLink"
style="display: none"
>
If you dont want to do this with html and instead an onclick function, you could also use the onclick="location.href='https://example.com'"
Can't Open Link in New Tab on iPad - Apple Community
Can’t open links in new tab in Saf… | Apple Developer Forums
open pages in new tab not working - Apple Community
html - How can I open a url in a new window on safari iphone - Stack Overflow
Videos
This should work on safari as well, but you can add a target to the link by adding target="_blank". This opens the link in a new tab and should also open in a new window on safari. Here is an example:
<a href="https://example.com" target="_blank">Link text.</a>
In your case wrap the input in a link:
<input
id="googleLink"
style="display: none"
>
If you dont want to do this with html and instead an onclick function, you could also use the onclick="location.href='https://example.com'"
You can try the below
<canvas id="myCanvas" width="200" height="100" style="border: 1px solid #000;" onclick="myFunction('thisURL')"></canvas>
<script>
function myFunction(url) {
window.open(url, '_blank').focus();
}
</script>
With this new iOS 15 update, holding down on something I want to open in a new tab, it used to open a few options. Now, it just hovers and does nothing with no setting to open in new tab.
I'm not sure you'd understand exactly how it is without having seen it yourself but if anyone has any idea as to how to open things in new tabs now with this new update then please let me know :)