Skip to content

Instantly share code, notes, and snippets.

@ashukasma
Created June 6, 2016 07:46
Show Gist options
  • Save ashukasma/bda106ec2ec07a2f21e96589bf83fe61 to your computer and use it in GitHub Desktop.
Save ashukasma/bda106ec2ec07a2f21e96589bf83fe61 to your computer and use it in GitHub Desktop.
Tools
function getURLParameter(name) {
return 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