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'"

Answer from Aidan Young on Stack Overflow
🌐
Apple Support
support.apple.com › guide › iphone › open-and-close-tabs-iph489b9313f › ios
Open and close tabs in Safari on iPhone - Apple Support
Use tabs to help you navigate between multiple open webpages. Go to the Safari app on your iPhone. Touch and hold the link, then tap Open in New Tab.
🌐
iPhone Life
iphonelife.com › how-to › productivity & business
The Quickest Way to Open a New Tab in Safari
November 28, 2022 - For easy web browsing on your iPhone, open a new tab just by swiping.
Discussions

html - How can I open a url in a new window on safari iphone - Stack Overflow
Whenever I try to open a URL with window.open(), no window is opened. So I tried this More on stackoverflow.com
🌐 stackoverflow.com
How do I get the “Open in a new tab” option?
From the screenshot, it looks like you are on the tabs page of Safari. You cannot open a link from that page into a new tab. What you should go into website and then copy paste link into a new tab. More on reddit.com
🌐 r/Safari
5
1
October 3, 2023
Quickly add a tab on Safari
You know how you can swipe left and right on the tab bar to switch tabs in Safari on iPhone? If you’re on the right-most tab, you can swipe left to open a new tab. More on reddit.com
🌐 r/ios
5
4
May 9, 2024
Can't Open Link in New Tab on iPad - Apple Community
Learn more here: Open and close tabs in Safari on iPhone. More on discussions.apple.com
🌐 discussions.apple.com
🌐
Reddit
reddit.com › r/safari › how do i get the “open in a new tab” option?
r/Safari on Reddit: How do I get the “Open in a new tab” option?
October 3, 2023 - From the screenshot, it looks like you are on the tabs page of Safari. You cannot open a link from that page into a new tab.
🌐
Mozilla Connect
connect.mozilla.org › t5 › discussions › open-tabs-on-iphone › m-p › 73545
Open Tabs on iPhone - Mozilla Connect
October 21, 2025 - Yeah, that new iOS “Open Tabs” layout is driving a lot of people crazy — Apple’s been tweaking UI behavior in Safari, and unfortunately, there’s no direct about:config equivalent on iOS like there is on desktop browsers or Android-based browsers (since iOS doesn’t allow deep configuration access).
🌐
Tom's Guide
tomsguide.com › phones › iphones
How to use the new tab bar in iOS 15 Safari | Tom's Guide
September 26, 2021 - 1. Tap the tabs button in the bottom right corner of Safari. ... Sign up to get the BEST of Tom's Guide direct to your inbox. Get instant access to breaking news, the hottest reviews, great deals and helpful tips.
🌐
Techbout
techbout.com › open-new-safari-tabs-in-background-iphone-17911
How to Open New Safari Tabs in Background On iPhone - Techbout
August 8, 2025 - Go to Settings > Safari > Open Links > On the next screen, select In New Tab option and make sure that you go back to the previos screen by tapping on < Safari to save the changes made.
Find elsewhere
🌐
TechRadar
techradar.com › computing › internet › browsers
Safari for iPhone & iPad: How to open tabs in the background | TechRadar
November 24, 2015 - Now you can open links in the background tab by performing these steps in Safari: Tap and hold on any link. On an iPhone, select "Open in Background." On an iPad, choose "Open in New Tab."
🌐
Reddit
reddit.com › r/ios › quickly add a tab on safari
r/ios on Reddit: Quickly add a tab on Safari
May 9, 2024 -

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.

🌐
iDownloadBlog
idownloadblog.com › home › how to open safari links in new tabs on iphone, ipad, and mac
How to open Safari links in new tabs on iPhone, iPad, and Mac
June 26, 2024 - Now, when you press and hold a link to display the shortcut menu, tap Open in Background. This will open the link in a new tab but won’t switch you over to it immediately. This way, you can continue viewing the site you’re on and pop over to that tab when you’re ready. You have different options in Safari on Mac than you do on iOS.
🌐
Apple Community
discussions.apple.com › thread › 255213378
Can't Open Link in New Tab on iPad - Apple Community
To open a link in a new tab, you need to do so from the menu by touching and holding the link and selecting "Open in New Tab" when the menu pops up.
🌐
Stack Overflow
stackoverflow.com › questions › 38878745 › opening-of-links-in-new-tab-on-safari-iphone
html - Opening of links in new tab on Safari iPhone - Stack Overflow
2016-08-10T18:15:09.48Z+00:00 ... function openTab(url) { // Create link in memory var a = window.document.createElement("a"); a.target = '_blank'; a.href = url; //click a.click(); }; ... Won't work with target _blank if there is no user interaction to open the new tab and the user has pop-ups blocked on their iOS device.
🌐
iMore
imore.com › ios
How to use tabs and private browsing in Safari for iPhone and iPad | iMore
January 30, 2023 - On an iPhone, tap the show pages icon in the bottom right of the screen (it looks like two squares). A quick swipe up from the Bottom Tab Bar on iOS 15 and newer gets you there even quicker.
🌐
Reddit
reddit.com › r/chrome › ios 15 - open in new tab
r/chrome on Reddit: iOS 15 - open in new tab
June 18, 2021 -

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 :)

🌐
Medium
medium.com › macoclock › 5-ways-to-open-links-in-new-tabs-on-safari-ipados-2806c4ebc1d
5 Ways to Open Links in New Tabs on Safari (iPadOS) | by Andrew Zheng | Mac O’Clock | Medium
June 4, 2020 - Simply press and hold on the link, then a preview and some options will pop up — including “Open in Background.” Tap that and it will open in a new tab! ... Press and hold for about 1 second!