script that opens a link doesn't work in the web format

Hello everyone, I'm about to release the demo of my game on a website by exporting it in the web browser format.
I'm not very familiar with the site, but it's one of those that hosts many games of my genre. An NPC can take you directly to my Patreon if you ask, usin the script nw.Shell.openExternal("[LINK]");

and everything works fine when I test it on RPG Maker. However, when I tested it on the website, I encountered the error "ReferenceError: nw is not defined." Does anyone know how to solve this? Thank you very much.
Try this code instead:

The top option, window.open(), should work in a browser deployment as it's not calling any NW dependency.
Try this code instead:

The top option, window.open(), should work in a browser deployment as it's not calling any NW dependency.

Thank you. Since I would need to send the build back to the site manager and then test it again, I would prefer to test it independently. Do you think Newgrounds is the right site to post it on? In theory, I would still need to export it as a web version to upload it to that site.
You don't need to upload to another site just to test your game.

There are some recommendations here for server apps on your own computer

There's also this
it works thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/script-that-opens-a-link-doesnt-work-in-the-web-format.166087/