Not open new window from Safari

I set up javascript to open the URL with the new window, but only Safari does not work.
Do you know why this thing happens?

I checked Chrome successfully opened the new window.

Safari blocks pop ups. I had created something that looks like it has the same problem.

My fix was to use a plugin, dont rember wich one but a free Open URL plugin in the Bubble store.

If this app is only for you u can change this settings in your phone/laptop/iPad > Settings > Safari > “Block pop-ups” > turn this option off.

Thank you for the reply.
I see. It make sense. I’m gonna check the bubble plugin!