How to open a website?

Hello,

I’d like to open an internet website when the player talks to a specific NPC. Is there a script call or plugin to achieve this?

Thank you in advance!
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');

it was found here if you looked through the forum or google for it

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-open-a-website.110746/