Created
June 11, 2020 18:45
-
-
Save oliverll1/183466cf40d4d19a03dd86d222710178 to your computer and use it in GitHub Desktop.
Get url params Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const queryString = window.location.search; | |
const urlParams = new URLSearchParams(queryString); | |
const param = urlParams.get('param'); | |
console.log(param ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment