Sets or updates a query parameter in the current URL without reloading the page.
The name of the query parameter.
The value to set for the query parameter.
// URL: https://example.comsetQueryParam("page", "2");// URL becomes: https://example.com?page=2 Copy
// URL: https://example.comsetQueryParam("page", "2");// URL becomes: https://example.com?page=2
1.1.0
Sets or updates a query parameter in the current URL without reloading the page.