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'"
html - How can I open a url in a new window on safari iphone - Stack Overflow
How do I get the “Open in a new tab” option?
Quickly add a tab on Safari
Can't Open Link in New Tab on iPad - Apple Community
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>
I recently switchwed back over to Safari as my browser from Chrome. Chrome has a nice feature where you can quickly open a new tab while browsing by clicking the "+" button on the middle bottom of the screen. I was wondering if Safari could do the same thing and found this post. I did a little research and the closest thing I found to easily open a new tab without having to navigate to your tabs screen and then clicking new tab is to long click the tabs button at the bottom right - pulling up a list of the options one of them being new tab. You can do it without lifting up your finger and it works a little slicker - long hold without lifting finer and shift your finger to the first option at the bottom which is a new tab.
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 :)