--- title: "getUrlParam" slug: "calc-function-get-url-param" updated: 2026-05-12T12:32:29Z published: 2026-05-12T12:32:29Z canonical: "docs.lobstersoftware.com/calc-function-get-url-param" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # getUrlParam > [!NOTE] > Returns the value of a parameter of the current browser URL. > > > [!TIP] > > Tooltip > > > > Syntax: *$getUrlParam(name[,default=''})* > > > > | Parameter | Description | > > | --- | --- | > > | `name` | The parameter name | > > | default | Default = "" (Empty) – the value if the parameter is not present. | > > > > Example:$*getUrlParam*(myUrlParam) for browser URL [http://pro.lobster.de/?myUrlparam=Yes](http://pro.lobster.de/?myUrlparam=Yes) delivers "Yes". ## Syntax *$getUrlParam(name[,default=''})* ## Parameter | Parameter | Description | | --- | --- | | *name* | The parameter name | | *default* | Default = "" (Empty) – the value if the parameter is not present. | ## Return value The URL parameter or default if it is not present. ## Example | Syntax | Browser URL | Result | | --- | --- | --- | | `$getUrlParam(myUrlParam)` | `http://pro.lobster.de/?myUrlParam=Yes` | `Yes` | | `$getUrlParam(notMyUrlParam)` | `http://pro.lobster.de/?myUrlParam=Yes` | | | `$getUrlParam(notMyUrlParam,Not there)` | `http://pro.lobster.de/?myUrlParam=Yes` | `Not there` |