Created
May 6, 2021 08:02
-
-
Save cyberdev/d817fd30baa7f28afd897fb9419834d2 to your computer and use it in GitHub Desktop.
Get url parameter value
This file contains 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
function getParam(param){ | |
return new URLSearchParams(window.location.search).get(param); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment