getUrlParam
Returns the value of a parameter of the current browser URL.
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 |