Retrieves the value of the named URL parameter. In case a parameter is specified multiple times, only the value of the first occurrence is returned.
If the URL is as follows:
https://formcloud.de/formcycle/form/provide/9999?name=James&preview&mode=&name=John
Then this function returns:
getURLParameter("name"); // => "James"getURLParameter("preview") // => undefinedgetURLParameter("mode"); // => ""getURLParameter("other"); // => undefined Copy
getURLParameter("name"); // => "James"getURLParameter("preview") // => undefinedgetURLParameter("mode"); // => ""getURLParameter("other"); // => undefined
Name of the URL parameter to retrieve.
The value of the URL parameter with the given name, or undefined if no such URL parameter exists.
undefined
Retrieves the value of the named URL parameter. In case a parameter is specified multiple times, only the value of the first occurrence is returned.
If the URL is as follows:
https://formcloud.de/formcycle/form/provide/9999?name=James&preview&mode=&name=John
Then this function returns: