Web APIs: URLSearchParams reference
5 February 2023 (Updated 12 February 2023)
On this page
In a nutshell
The URLSearchParams Web API provides methods for interacting with URL query strings โ the portion after the ?
character as shown in green below:

Recipes
Get URLSearchParams instance from current URL
Update URL using URLSearchParams
Iterate through all query string params
Get the first value associated with a parameter
Get all values associated with a parameter
Set the value of a parameter
Append a new parameter
Check if a parameter exists
Get number of query parameters
Get parameter names as an array
Sources
Tagged:
Web APIs
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment