How to open website from rpg maker mv game?

Hi, good morning to all of you! I am currently making an educational games with RPG Maker MV and I thought it would be cool to have an in-game buttons, events, scripts or something that can link my students to live worksheet that I created online 🙂 . Is it possible to do it? If so, how?

thx for read my question, hope u all a wonderfull day.
I was able to find this topic in the forum, it explains how to use a script to open websites in RPG Maker MV.

The script looks like this:

Code:
// Open URL in a new window
window.open('https://github.com/nwjs/nw.js', '_blank');

// Open URL with default browser (Windows Or Mac Only)
require('nw.gui').Shell.openExternal('https://github.com/nwjs/nw.js');
that sounds cool hope it goes well.

I've moved this thread to MV Support. Thank you.

I was able to find this topic in the forum, it explains how to use a script to open websites in RPG Maker MV.

The script looks like this:

Code:
// Open URL in a new window
window.open('https://github.com/nwjs/nw.js', '_blank');

// Open URL with default browser (Windows Or Mac Only)
require('nw.gui').Shell.openExternal('https://github.com/nwjs/nw.js');
Thanks, it works wonders inside rpg maker. But when I export it to android the website can't be opened. Maybe I needs to change 'nw.gui' to something else...
Thanks, it works wonders inside rpg maker. But when I export it to android the website can't be opened. Maybe I needs to change 'nw.gui' to something else...
I won't pretend to be an expert, but I think nw.gui is specific to Windows and Mac, so the script would probably need to handled differentl for Android.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-open-website-from-rpg-maker-mv-game.149991/