Javascript Query String Manipulation Functions - Code-Tips.com - Web Development, Programming, SEO

Sunday, February 13, 2011

Javascript Query String Manipulation Functions

Javascript Query String Manipulation Functions

The following is a series of articles with Javascript functions that can be used to manipulate the query string parameters and variables in the current url.  Use the links below to go to a specific function:

Javascript Add Query String Parameter
Add a query string parameter to the url of the current page.

Javascript Check if Query String Parameter Exists in current URL
Test if the query string of the current URL contains a specific parameter.

Javascript Remove a parameter from the query string if found in current url
Remove a parameter from the query string of the current page.

Javascript Get the value of the specified Query String Parameter
Find the value of a specific query string parameter in the current URL.  Return the value of the parameter, or false if not found.

Javascript Get all parameters and values as an Array
Returns a multidimensional array containing parameters and values from the query string of the current page.

Javascript Return the url of the current page with no query string parameters (strip params)
Removes all parameters from the query string of the current URL.

Javascript Add query string parameter dynamically to some or all links on the current page
Update all links on the current page to include a specific query string parameter and value.

0 comments:

Post a Comment