The getParameter() method gets the GET parameter from window.location or an optional string.
getParam = Splunk.util.getParameter( paramVal , string )
|
paramVal |
String |
Parameter value to get. |
|
string |
String |
(Optional) String to search instead of window.location.search |
|
String |
Parameter value, or none if paramVal has no value. |
var fooVal = Splunk.util.getParameter('foo');