getUrlEncodedKey

Retrieves a query string value from the current or provided query string.

o.getUrlEncodedKey(key,query)

Return Value

value or empty string if not found

Parameters

<>key<> The query string key to retrieve

<>query<> Optional - full query string starting with a ? (important!)

Example

<<code lang="JavaScript">>var q = "?name=rick&company=west%20wind&page=3&status=active";
var page = getUrlEncodedKey("page",q); // 3<</code>>


© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic