Using URLSearchParams Web API to Preserve Page State

Code Snippet

In this episode we look at the URLSearchParams Web API which allows you to query, check and modify URL parameters using JavaScript. As always, you can check out this episode's snippet here:

https://codepen.io/walpolea/pen/QWLdwPR?darkmode

And if you want to learn more about the URLSearchParams API, here's the documentation:

https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

To listen to explicit episodes, sign in.

Stay up to date with this show

Sign in or sign up to follow shows, save episodes, and get the latest updates.

Select a country or region

Africa, Middle East, and India

Asia Pacific

Europe

Latin America and the Caribbean

The United States and Canada