Clicked "OK" on pop-up dialog box, could this give my iPhone malware?
Was browsing a site I frequently visit on my iPhone using Google Chrome for iOS and got redirected to a scam site that opened one of those "You won a free thing! Click OK to get it" pop-up browser dialog boxes. The screen was greyed out except for the dialog box so I couldn't close the browser tab, and closing Chrome and then re-opening it just brought me back to the same place. As I didn't know what else to do, I tapped "OK" to get the dialog box to close and then immediately closed the browser tab.
I did not provide any personal information, and I cleared my cookies, cache, etc. in Chrome after closing the tab. All I did was click "OK" on the browser dialog box so that I would be able to close the offending tab.
Am I safe, or was simply clicking "OK" in the dialog box enough to give my iPhone malware or to steal my personal information? I know iPhones are fairly virus-resistant, but also that this has changed in recent years. I'm still on iOS 10.3.3 if that would matter.
iPhone SE, iOS 10.3.3