getUrlEncodedKey
less than 1 minute to read

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

text
<<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-2024 • Updated: 12/12/15
Comment or report problem with topic