Changing Icon image mid game

Howdy, is there any ways to change the game window's Icon mid game?
I don't me just placing an image in the icon folder for start up, I mean as in something like a script call that can be used mid game.

I know you can change the window name by document.title = "Foobar";
but I can't seem to find anything about changing the icon with script.

Any info would be great, whether it's via script or some plugin, thanks ^^
I believe what you're looking for is called the favicon. There's a stack overflow link here to see some examples of changing it via javascript code.

I'm not sure how this is done for desktop or mobile distributions. It may be reflective of the document since RPG maker MZ is essentially just an HTML 5 game, but I have no idea.
I believe what you're looking for is called the favicon. There's a stack overflow link here to see some examples of changing it via javascript code.

I'm not sure how this is done for desktop or mobile distributions. It may be reflective of the document since RPG maker MZ is essentially just an HTML 5 game, but I have no idea.
Doesn't seem to work, while it is an html5 game, the window itself might be more complicated than that to change, as I tried to change the icons in the head, but nothing visually happened, but the code in the head was changed.
bump

@Edael, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

Standalone deployments use NWJS. I'm not an expert at this kind of thing, but the only options I'm aware of for assigning the NW app's title icon are:
  1. On boot, via the manifest file (package.json):
  2. By opening a new window, via NWWindow#open or the new-window-policy callback:
...so it might be implemented as a read-only value.
changing HTML document Icon of the favicon if you target it can
work, but you need to "restructure" the setup a tiny bit as a JS call
instead of a HTML tag call.

while both are minor equal, favicon is webbased, if you want to change the
icon of the game.exe, thats a different story and not sure if it can be changed
dynamically.

Original thread: https://forums.rpgmakerweb.com/threads/changing-icon-image-mid-game.160884/