Apart from these functions for the HTML5 target module, there is
also a special JavaScript variable that can be used on those rare
occasions when the contents of the html5game folder are stored in a
completely different place (URL). Normally this path is hard-coded
in the JavaScript file and is relative to the location from where
the JavaScript is called, but you can set the variable
g_GameMakerHTML5Dir before the call to the
game script and the game will be run from the newly defined
location. For example: