Sorry, I'm not sure what a 'hidden' parameter is..
The easiest way to know for sure is to test.
I don't know if this is the right nomenclature for it, but there's sometimes when a parameter isn't showed in the URL at the address bar, like for example https://examp.com/?myparam="abcd1234"
. In my case the link is like "https://examp.com/mygame
" and the parameter is actually inside the page in an <iframe src="https://examp.com/?myparam="abcd1234">
.
I don't get too much of web as of now to understand if what I did was necessary or not, but the only way I got it to work is as it follows (using the URLSearchParams api). To anyone who stumbles upon something like this in the future there goes what I did bellow. Also, thanksdop2000, this API was in the link you recommended. :)
globalThis.paramGotten = "Initialize";
function gettingParameter()
{
const param = new URLSearchParams(window.location.search);
//if there is a param called myparam...
if(param.has('myparam'))
{
console.log("param exists");
//passing the param that was found to the Global Variable "paramGotten"
//this way it's possible to access it in the EventSheet
paramGotten = param.get('myparam');
console.log(paramGotten);
}
}
I tried using localVars and globalVars to get the param from the JS code, but wasn't able to do it in anyway. The only path I found was with the Text Object. But hey, it's working.