JS to reboot the game?

Nothing fancy. Just looking for the JS command that performs the equivalent of hitting the F5 key to reboot a game in progress. 🙂
Judging from the js code that is run when F5 is pressed, it should be:

Code:
location.reload();
Judging from the js code that is run when F5 is pressed, it should be:



location.reload();



Perfect!


And on the same subject, this reset should clear all caches, stored assets, etc, right?
I'm not sure about that - you could try


location.reload(true);


(from here: http://stackoverflow.com/questions/5721704/window-location-reload-with-clear-cache),


but I don't know enough about js memory handling to know exactly what it does.
I'm not sure about that - you could try



location.reload(true);


(from here: http://stackoverflow.com/questions/5721704/window-location-reload-with-clear-cache),


but I don't know enough about js memory handling to know exactly what it does.



Ah, that helps a great deal.


I can do a reload and test to see if it's saving any variables, at least.

Original thread: https://forums.rpgmakerweb.com/threads/js-to-reboot-the-game.74083/