MZ Clickable link from within message window?

I'm looking for a way to put a clickable link in message windows. Obviously, this example doesn't work (just pretending HTML is functional here), but it displays the kind of result I'm looking to achieve:

Capture15.png


I do know how to use window.open() from a script call, but 1) I'm not sure how to open the window in the user's default browser instead of the game's container and 2) I'd like to be able to use it as a link within a message window or scrolling text. I was surprised that I couldn't find any existing plugins that did this, but if I've missed one or there's another way to do this, I'm all ears.

As always, thanks in advance for any help or advice; y'all are great!
I kinda forgot I asked about this, so delayed bump, but does anybody know a plugin that would work? Not vital, but it would be nice.
Hello @schvanckque. This won't necessarily meet the need, but I know that the CGMZ - Credits plugin offers clickable links in scrollable window that do exactly what you want (open in a new browser window). This may be a good place to start.

Edit: To extend my answer, you have to remember that the text in the windows are not text characters, but drawn bitmap images. To make a text or link clickable, you would have to:
  1. Define the click area
  2. Detect if the player clicks on the area in question
  3. Dynamically determine which link is hidden behind this area and then display it in the browser
Spoiler
In editor:
1648465020735.png


In game:
1648465148070.png

If the position of the links is fixed in the window, it should be possible to make a plugin or a specific script to do the job. However, if the text is dynamic and the position of the link changes in each window, it may be more complicated.
you have to remember that the text in the windows are not text characters, but drawn bitmap images.
That's a good point I hadn't even thought of, and thanks for the reply; that does move me a bit in the right direction.

Original thread: https://forums.rpgmakerweb.com/threads/clickable-link-from-within-message-window.145459/