Created
April 14, 2017 16:25
-
-
Save devhero/558df3243c112f5fbedd707f5390f26d to your computer and use it in GitHub Desktop.
How to get the value from the url GET parameters? - http://stackoverflow.com/questions/979975/how-to-get-the-value-from-the-get-parameters
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
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