Optionalurl: string
A URL which contains a ?, e.g. ?myparam=x or https://a.com?myparams=x.
If not provided it defaults reading the current URL query string with
location.search. Through this argument you can use this same function to
parse, for instance, the query params of the href of a <a href="..."> HTML tag.
Get parsed query parameters as object dictionary (from URL or given query string)