Application Framework Reference

Splunk API

getParameter()

The getParameter() method gets the GET parameter from window.location or an optional string.

Synopsis

getParam = Splunk.util.getParameter( paramVal , string )

Parameters

paramVal

String

Parameter value to get.

string

String

(Optional) String to search instead of window.location.search

Return Value

String

Parameter value, or none if paramVal has no value.

Example

   var fooVal = Splunk.util.getParameter('foo');
 

See Also

getPath()