Code Snippet

Using URLSearchParams Web API to Preserve Page State


Listen Later

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

...more
View all episodesView all episodes
Download on the App Store

Code SnippetBy Andrew Walpole

  • 5
  • 5
  • 5
  • 5
  • 5

5

2 ratings