Query string from web app

I am compiling my app as web app to my own server. i wonder that how can i get query string data in URL when web site first loaded?

for example
www.example.com\test\index.htm
or
www.example.com\test\index.htm?name=tooling

Thanks
Teo

In your forms “onshow()” event, you can add the following javascript function:

var queryString = window.location.search.slice(1);  
const urlParams = new URLSearchParams(queryString);
var tmpName = urlParams.get('name'); //in your example, it would save the value 'tooling' in tmpName

Jvetterli, this is what i want. Thanks