RPG Maker MZ - opening external web links on hosted server

Hi all,
I'm currently making a web game in RPG Maker MZ. I'm hosting the game on my own server (for testing purposes). It's a game that I'm making for a school. Part of the game is that within the game the player must be able to open a link to an external page. For example a link to a page about s specific topic or a page where they can fill in a form.

Now I know there is a plugin available for RPG Maker MV from Yanfly (External_links_YEP), but unfortunately that doesn't work in MZ.

You can use a simple JavaScript snippet like:
window.win = window.open('[URL='https://www.rpgmakerweb.com/%27);']https://www.rpgmakerweb.com/');[/URL]
But the problem there is that the link does work, but it's blocked by the pop-up blocker of your browser.

So basically my question is if there is a way to stop the pop-up blocker from blocking the pop-up window from within RPG Maker MZ?

Anyways, thanks for all of your time!
best regards,
Andreas
Hello and welcome!

The most used javascript command for this is this one, recommending only for the game distributed for Web Browser:
JavaScript:
window.open('http://rpgmakerweb.com')
Or:
JavaScript:
open('http://rpgmakerweb.com')

If distributing for Windows, Linux or MacOS, this opens the computer's default browser:

Good luck

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-opening-external-web-links-on-hosted-server.140726/