Created
May 18, 2018 07:51
-
-
Save dmjcomdem/5b07b7a102ca2945c2ce32b4c86cb2f4 to your computer and use it in GitHub Desktop.
Get URL parameter
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
let getURLParameter = (name) => decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment